POptional

public class POptional<S, T, A, B> : POptionalOf<S, T, A, B>

Undocumented

  • Undocumented

    Declaration

    Swift

    public static func + <C, D>(lhs: POptional<S, T, A, B>, rhs: POptional<A, B, C, D>) -> POptional<S, T, C, D>
  • Undocumented

    Declaration

    Swift

    public static func + <C, D>(lhs: POptional<S, T, A, B>, rhs: PPrism<A, B, C, D>) -> POptional<S, T, C, D>
  • Undocumented

    Declaration

    Swift

    public static func + <C, D>(lhs: POptional<S, T, A, B>, rhs: PLens<A, B, C, D>) -> POptional<S, T, C, D>
  • Undocumented

    Declaration

    Swift

    public static func + <C, D>(lhs: POptional<S, T, A, B>, rhs: PIso<A, B, C, D>) -> POptional<S, T, C, D>
  • Undocumented

    Declaration

    Swift

    public static func + <C, D>(lhs: POptional<S, T, A, B>, rhs: PSetter<A, B, C, D>) -> PSetter<S, T, C, D>
  • Undocumented

    Declaration

    Swift

    public static func + <C>(lhs: POptional<S, T, A, B>, rhs: Getter<A, C>) -> Fold<S, C>
  • Undocumented

    Declaration

    Swift

    public static func + <C>(lhs: POptional<S, T, A, B>, rhs: Fold<A, C>) -> Fold<S, C>
  • Undocumented

    Declaration

    Swift

    public static func + <C, D>(lhs: POptional<S, T, A, B>, rhs: PTraversal<A, B, C, D>) -> PTraversal<S, T, C, D>
  • Undocumented

    Declaration

    Swift

    public static func identity() -> Optional<S, S>
  • Undocumented

    Declaration

    Swift

    public static func codiagonal() -> Optional<Either<S, S>, S>
  • Undocumented

    Declaration

    Swift

    public static func void() -> Optional<S, A>
  • Undocumented

    Declaration

    Swift

    public init(set : @escaping (S, B) -> T, getOrModify : @escaping (S) -> Either<T, A>)
  • Undocumented

    Declaration

    Swift

    public func set(_ s: S, _ b: B) -> T
  • Undocumented

    Declaration

    Swift

    public func getOrModify(_ s: S) -> Either<T, A>
  • Undocumented

    Declaration

    Swift

    public func modifyF<F: Applicative>(_ s : S, _ f : @escaping (A) -> Kind<F, B>) -> Kind<F, T>
  • Undocumented

    Declaration

    Swift

    public func liftF<F: Applicative>(_ f : @escaping (A) -> Kind<F, B>) -> (S) -> Kind<F, T>
  • Undocumented

    Declaration

    Swift

    public func getOption(_ s: S) -> Option<A>
  • Undocumented

    Declaration

    Swift

    public func setOption(_ s: S, _ b: B) -> Option<T>
  • Undocumented

    Declaration

    Swift

    public func isEmpty(_ s: S) -> Bool
  • Undocumented

    Declaration

    Swift

    public func nonEmpty(_ s: S) -> Bool
  • Undocumented

    Declaration

    Swift

    public func choice<S1, T1>(_ other: POptional<S1, T1, A, B>) -> POptional<Either<S, S1>, Either<T, T1>, A, B>
  • Undocumented

    Declaration

    Swift

    public func first<C>() -> POptional<(S, C), (T, C), (A, C), (B, C)>
  • Undocumented

    Declaration

    Swift

    public func second<C>() -> POptional<(C, S), (C, T), (C, A), (C, 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 modifyOption(_ s : S, _ f : @escaping (A) -> B) -> Option<T>
  • Undocumented

    Declaration

    Swift

    public func find(_ s : S, _ predicate : @escaping (A) -> Bool) -> Option<A>
  • Undocumented

    Declaration

    Swift

    public func exists(_ s : S, _ predicate : @escaping (A) -> Bool) -> Bool
  • Undocumented

    Declaration

    Swift

    public func all(_ s : S, _ predicate : @escaping (A) -> Bool) -> Bool
  • Undocumented

    Declaration

    Swift

    public func compose<C, D>(_ other: POptional<A, B, C, D>) -> POptional<S, T, C, D>
  • Undocumented

    Declaration

    Swift

    public func compose<C, D>(_ other: PPrism<A, B, C, D>) -> POptional<S, T, C, D>
  • Undocumented

    Declaration

    Swift

    public func compose<C, D>(_ other: PLens<A, B, C, D>) -> POptional<S, T, C, D>
  • Undocumented

    Declaration

    Swift

    public func compose<C, D>(_ other: PIso<A, B, C, D>) -> POptional<S, T, C, D>
  • Undocumented

    Declaration

    Swift

    public func compose<C, D>(_ other: PSetter<A, B, C, D>) -> PSetter<S, T, C, D>
  • Undocumented

    Declaration

    Swift

    public func compose<C>(_ other: Getter<A, C>) -> Fold<S, C>
  • Undocumented

    Declaration

    Swift

    public func compose<C>(_ other: Fold<A, C>) -> Fold<S, C>
  • Undocumented

    Declaration

    Swift

    public func compose<C, D>(_ other: PTraversal<A, B, C, D>) -> PTraversal<S, T, C, D>
  • 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>