Iso

public typealias Iso<S, A> = PIso<S, S, A, A>
  • Focuses on a specific index of this iso focus.

    Declaration

    Swift

    func at(_ i: A.AtIndex) -> Lens<S, A.AtFoci>

    Parameters

    i

    Index to focus.

    Return Value

    A lens from this structure to the focused index.

  • Provides a traversal over all elements of the focus of this iso.

    Declaration

    Swift

    var every: Traversal<S, A.EachFoci> { get }
  • Provides an optional focused on an index of the focus of this iso.

    Declaration

    Swift

    func index(_ i: A.IndexType) -> Optional<S, A.IndexFoci>

    Parameters

    i

    Index to focus.

    Return Value

    An optional focused on an index of the focus of this iso.

  • Provides an optional focused on an index of the focus of this iso.

    Declaration

    Swift

    subscript(i: A.IndexType) -> Optional<S, A.IndexFoci> { get }

    Parameters

    i

    Index to focus.

    Return Value

    An optional focused on an index of the focus of this iso.

  • Provides an identity Iso.

    Declaration

    Swift

    static var identity: Iso<S, S> { get }