Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's not like list comprehensions lack equivalent in other languages. Let's take Haskell for example. Python lists comprehension could use a where clause from Haskell though so one could really pack everything into a one-liner :)

(as it is now, list comprehensions requiring various references to result of a function call evaluate the function each time it's used)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: