MonadError

public protocol MonadError : ApplicativeError, Monad

Undocumented

  • ensure(_:_:_:) Extension method

    Undocumented

    Declaration

    Swift

    public static func ensure<A>(_ fa: Kind<Self, A>, _ error: @escaping () -> E, _ predicate: @escaping (A) -> Bool) -> Kind<Self, A>