4 ms·
is that the same as Haskell's concatMap? concatMap :: (a -> [b]) -> [a] -> [b] There are some more general versions that may be a closer comparison:
by gregwebs 15y ago
is that the same as Haskell's concatMap?
concatMap :: (a -> [b]) -> [a] -> [b]
There are some more general versions that may be a closer comparison:
concatMap :: Foldable t => (a -> [b]) -> t a -> [b]
- devonrt 15y agoThe great thing about the Haskell signature is that if you understand functional programming at all, it's fairly easy to understand, at least in my opinion. Scala's method signature requires knowledge of Scala's brand of functional programming, including mixins and implicits.