functional programming - Is List-Comprehension any better than List-Abstractions? -


Why people like list signals like ([x 2 '] (* 2x) ) instead of (map # (*% 1 2) '(1 2 3)) ?

Does such programming benefit?
1. Is this more readable?
2. Is it fast in some cases? 3. Is it better for some type of operation and data structures?

For a given example, there is no benefit; But in general, for is useful when you are involved in two (or more) views or when some filtering is required - with for Code>: Let's and : are generally more readable than a series of nested maps and filters .


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -