3 ms·
What about generic algorithms like filter/map. Is it python style like map(fn, filter(...))?
by mirthless 5y ago
What about generic algorithms like filter/map. Is it python style like map(fn, filter(...))?
- jorams 5y agoLooks like it supports higher order functions, so you could just implement those yourself.
- garethrowlands 5y agoIsn't python style more about its built-in comprehensions and much less about generic functions? [fn x for x in ... if ...] I know there's a `map` in, say, `multiprocessing.Pool`, but using that doesn't feel as natural as a comprehension in python or `map` in, say, Haskell or Kotlin.