3 ms·
[action(x) for x in array_of_things if x > 7] Action is the function you are applying. `for x in ...` will pull an iterator from a generator which could be doi
by fnord123 7y ago
[action(x) for x in array_of_things if x > 7]
Action is the function you are applying. `for x in ...` will pull an iterator from a generator which could be doing a lot of interesting stuff. And `if x > 7` is the filter.