|
|
|
|
|
by troupo
1 day ago
|
|
map functions are very useful for iterating over collections. Most functions iterating over collections are useful, because a lot of the data you're commonly dealing with is collections. And most collections are generic. > Function literals are verbose and inlining is far less agressive. > Even python shuns map and filter in favor of comprehensions. That's the problem of the language design. And Python isn't the best language to turn to for language design > A for loop is more readable than the lambda soup. A for loop shoving modified items into a temp variable with append() that is then returned is less readable than a map function transforming data. Too bad Go decided to turn lambdas into unreadable soup. |
|