would like Promise.flatMap to exist
I guess with the generic versions you can write a more generic version of exactly what you asked for
-
-
I'm just curious about how much these monad container switches generalise -- I'm not sure why they need to be traversable compared to just supporting the notion of flatten/concat that one needs for >>=
-
It's actually the other way around (sorry, I know I implied otherwise earlier -- I'm not a Haskell expert). Traversable is adjacent to Monad. e.g. you can go `HashMap<K, Future<V>>` to `Future<HashMap<K, V>>`, but not the other way around.
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.