2 ms·
I think the biggest reason python map/filter aren't natural is the building outwards (though I do realize it's lispy and some people might prefer it). Language
by bpicolo 11y ago
I think the biggest reason python map/filter aren't natural is the building outwards (though I do realize it's lispy and some people might prefer it).
Languages that support it directly on a list are much more intuitive in my head: list.filter().map()...
Alternatively, pull in syntax like elixir (and other languages) have to make chaining a breeze:
list |> map() |> filter()