Search posts, tags, users, and pages
List Comprehensions (Python vs QCObjects / JavaScript)
Jean Machuca
@jeanmachuca
Engineer and writer
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)
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)