3 ms·
(on mobile) You could use Nimssequence iterators [x.name for x in someList if x.age > 5] Is the same as: x.filterIt(it.age > 5).mapIt(it.name) In a way it
by budafish 5y ago
(on mobile)
You could use Nimssequence iterators
[x.name for x in someList if x.age > 5]
Is the same as:
x.filterIt(it.age > 5).mapIt(it.name)
In a way it reads better.