- wrapPred<T, T1>(f): ((val) => Maybe<T1>)
-
Parameters
-
f: ((val) => val is T1)
-
- (val): val is T1
-
Returns val is T1
Returns ((val) => Maybe<T1>)
- wrapPred<T>(f): ((val) => Maybe<T>)
-
Parameters
-
f: ((val) => boolean)
-
- (val): boolean
-
Returns boolean
Returns ((val) => Maybe<T>)
Adapt a predicate into a function that returns
Maybe
.