miniblog.
← Back to all posts
Jul 8, 2014 at 10:52
Now that's what I call a Python list comprehension!
https://stackoverflow.com/a/13658674/509706
Wilfred Hughes
Related Posts
Jul 30, 2014 at 17:22
Python list comprehensions are rarely readable when nested. [y for x in [[1, 2], [3, 4]] if x for y in x if y]
Wilfred Hughes
Shared words: comprehension, Python, list Score: 66.4
Sep 29, 2010 at 18:50
Python learners beware: One minute you're learning #Python with list comprehensions, the next you are grokking map, reduce and filter.
Wilfred Hughes
Shared words: comprehension, Python, list Score: 66.4
Jul 6, 2018 at 12:21
Neat elisp feature I learnt today: because closures are just lists, you can manually construct them and call them as functions: (mapcar '(closure (t) (x) (1+ x)) '(1 2 3)) ;; => '(2 3 4)
Wilfred Hughes
Shared words: call, list Score: 17.1