-
Undocumented
Declaration
Swift
public static func + <C, D>(lhs: PLens<S, T, A, B>, rhs: PLens<A, B, C, D>) -> PLens<S, T, C, D>
-
Undocumented
Declaration
Swift
public static func + <C, D>(lhs: PLens<S, T, A, B>, rhs: PIso<A, B, C, D>) -> PLens<S, T, C, D>
-
Undocumented
Declaration
Swift
public static func + <C, D>(lhs: PLens<S, T, A, B>, rhs: PTraversal<A, B, C, D>) -> PTraversal<S, T, C, D>
-
Undocumented
Declaration
Swift
public static func identity() -> Lens<S, S>
-
Undocumented
Declaration
Swift
public static func codiagonal() -> Lens<Either<S, S>, S>
-
Undocumented
Declaration
Swift
public init(get : @escaping (S) -> A, set : @escaping (S, B) -> T)
-
Undocumented
Declaration
Swift
public func get(_ s: S) -> A
-
Undocumented
Declaration
Swift
public func set(_ s: S, _ b: B) -> T
-
Undocumented
Declaration
Swift
public func split<S1, T1, A1, B1>(_ other: PLens<S1, T1, A1, B1>) -> PLens<(S, S1), (T, T1), (A, A1), (B, B1)>
-
Undocumented
Declaration
Swift
public func first<C>() -> PLens<(S, C), (T, C), (A, C), (B, C)>
-
Undocumented
Declaration
Swift
public func second<C>() -> PLens<(C, S), (C, T), (C, A), (C, B)>
-
Undocumented
Declaration
Swift
public func compose<C, D>(_ other: PLens<A, B, C, D>) -> PLens<S, T, C, D>
-
Undocumented
Declaration
Swift
public func compose<C, D>(_ other: PIso<A, B, C, D>) -> PLens<S, T, C, D>
-
Undocumented
Declaration
Swift
public func compose<C, D>(_ other: PTraversal<A, B, C, D>) -> PTraversal<S, T, C, D>
-
Undocumented
Declaration
Swift
public func asGetter() -> Getter<S, A>
-
Undocumented
Declaration
Swift
public func asOptional() -> POptional<S, T, A, B>
-
Undocumented
Declaration
Swift
public func asSetter() -> PSetter<S, T, A, B>
-
Undocumented
Declaration
Swift
public func asFold() -> Fold<S, A>
-
Undocumented
Declaration
Swift
public func asTraversal() -> PTraversal<S, T, A, B>
-
Undocumented
Declaration
Swift
public func modify(_ s : S, _ f : @escaping (A) -> B) -> T
-
Undocumented
Declaration
Swift
public func lift(_ f : @escaping (A) -> B) -> (S) -> T
-
Undocumented
Declaration
Swift
public func find(_ s: S, _ predicate: (A) -> Bool) -> Option<A>
-
Undocumented
Declaration
Swift
public func exists(_ s: S, _ predicate: (A) -> Bool) -> Bool