|
|
|
|
|
by CmdrKrool
4362 days ago
|
|
> I don't know it filter/map are available as methods of a list. They're not. Which is a shame in my opinion, because as you've written it you can clearly read the operations in the order they happen, ie. filter followed by map. Instead, you do have to do the second line of what blossoms wrote above. And I don't think it's possible to write a list comprehension that reads in execution order, either :( |
|