Tuple2

public enum Tuple2<A, B>

Utility optics over tuples of arity 2.

  • Obtains a Lens that focuses on the first component of a tuple

    Declaration

    Swift

    public static var _0: Lens<(A, B), A> { get }
  • Obtains a Lens that focuses on the second component of a tuple

    Declaration

    Swift

    public static var _1: Lens<(A, B), B> { get }