MaybeRecordX<K, J> extension
Methods
-
maybeAsyncCombine<
T> ({FutureOr< Maybe< firstJust(K)?, FutureOr<T> >Maybe< secondJust(J)?, FutureOr<T> >Maybe< bothJust(K, J)?, FutureOr<T> >Maybe< bothNothing()?}) → FutureOr<T> >Maybe< T> > -
Available on (Maybe<
Use it to asynchronously combine two different Maybe's into a new one. InputK> , Maybe<J> ), provided by the MaybeRecordX extensionfirstJustto map case where only the first value isJust,secondJustto map case where only the second value isJust,bothJustto map case where both first and second value areJustandbothNothingto map case where both areNothingExample: -
maybeCombine<
T> ({Maybe< T> firstJust(K)?, Maybe<T> secondJust(J)?, Maybe<T> bothJust(K, J)?, Maybe<T> bothNothing()?}) → Maybe<T> -
Available on (Maybe<
Use it to combine two different Maybe's into a new one. InputK> , Maybe<J> ), provided by the MaybeRecordX extensionfirstJustto map case where only the first value isJust,secondJustto map case where only the second value isJust,bothJustto map case where both first and second value areJustandbothNothingto map case where both areNothingExample: