List Comprehensions are a language feature that is commonly associated with Python Data Structures. A list comprehension in Python consists of brackets containing an expression followed by a for clause, then zero or more for or if clauses. This is a ...

Markdown supported · ⌘↵ to post
Robert Budzyński
All quite easy in pure javascript, thanks to spread syntax:
[...Array(9).keys()].filter(i => !(i % 2))[...'human'][...Array(10).keys()].map(x => x * x)