4 ms·
Huh, our mutual confusion is interesting indeed! Thank you for teaching me something about Ruby. What compact does makes sense. Python’s list comprehension com
by nequo 4y ago
Huh, our mutual confusion is interesting indeed! Thank you for teaching me something about Ruby. What compact does makes sense.
Python’s list comprehension combines map and filter.
[process(s) for s in stuff if s.unprocessed]
is equivalent to
map process (filter isUnprocessed stuff)
in Haskell.