S.__without having to rely on
R.__(or define our own placeholder value).
Is there a nice analogue to
|| when working with Maybe (like
Fluture#or)? If I have two
Maybe as, I want to use the first Just, or Nothing, so:
or( Just('a') , Nothing ) = Just('a') or( Nothing , Just('b') ) = Just('b') or( Just('a') , Just('b') ) = Just('a') or( Nothing, Nothing ) = Nothing
Or am I looking over a better way to do this kind of thing?
Maybe#concatcomes really close, but then it tries to
hmm, is this not how
concat is meant to work?
Maybe#concatonly applies to
atypes which satisfy the Semigroup constraint (i.e. provide a
This is valid:
Maybe String ~> Maybe String -> Maybe String
This is invalid:
Maybe Number ~> Maybe Number -> Maybe Number
S.concatis a thing
S.concatactually already exists, @Bradcomp, but as you say the other FL functions are coming soon!