Dias
10/17/2018, 4:01 PMpakoito
10/17/2018, 4:57 PMpakoito
10/17/2018, 4:58 PMpakoito
10/17/2018, 4:59 PMwhere's Monad
, but rather, where's something that goes from F<A> -> (A -> F<B>) -> F<B>
pakoito
10/17/2018, 4:59 PMthen
, in haskell as bind
, in Kotlin's stdlib as flatMap
, in Arch Components as switchMap
, and in Rust is and_then
pakoito
10/17/2018, 5:00 PMraulraja
10/17/2018, 5:04 PMOption
, ambiguous result Either
, Async promises Deferred
, etc… We understand that is sequential because in order to advance in the computation we need the computed value as in the bind
or flatMap
signature : (A) -> F<B>. You can’t obtain a new value in the context of F<B>
until the previous F<A>
had produced an A
.raulraja
10/17/2018, 5:04 PMraulraja
10/17/2018, 5:05 PMraulraja
10/17/2018, 5:05 PMraulraja
10/17/2018, 5:06 PM