Each

public protocol Each

Each provides a Traversal that can focus into this structure to see all its foci of type EachFoci.

  • Undocumented

    Declaration

    Swift

    associatedtype EachFoci
  • Provides a Traversal for this structure with focus on EachFoci.

    Declaration

    Swift

    static var each: Traversal<Self, EachFoci> { get }
  • each(_:) Extension method

    Pre-composes the provided Traversal from this Each with an isomorphism.

    Declaration

    Swift

    static func each<B>(_ iso: Iso<B, Self>) -> Traversal<B, EachFoci>

    Parameters

    iso

    An isomorphism.

    Return Value

    A Traversal on a structure that is isomorphic to this structure and has the same foci.

  • each(_:) Extension method

    Post-composes the provided Traversal from this Each with an isomorphism.

    Declaration

    Swift

    static func each<B>(_ iso: Iso<EachFoci, B>) -> Traversal<Self, B>

    Parameters

    iso

    An isomorphism.

    Return Value

    A Traversal on this structure with a new foci that is isomorphic to the original one.