Re:Functional programming with Python
by andreasvc on Sunday October 28, 2012 @09:52AM
(#4708917)
On the last point, a list comprehension is just a much a functional programming idiom--Python got them from Haskell! I use both in my code, whichever is shortest.
PS: map returns a list, no need to call list() on it.
PS: map returns a list, no need to call list() on it.