Code Benchmark: QCObjects similarities to Python 3 using JavaScript
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 ...
devblog.qcobjects.org3 min read
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)