4 ms·
You are both partially right. List comprehensions are considered pythonic, and they are similar to map and filter from the FP world. However the map and filter
by TorKlingberg 12y ago
You are both partially right. List comprehensions are considered pythonic, and they are similar to map and filter from the FP world. However the map and filter functions themselves are somewhat unpythonic.
- GFK_of_xmaspast 12y ago"unpythonic" once again meaning "disliked by van Rossum."
- omaranto 12y agoI guess list comprehensions in Python are, as you say, similar to map and filter from the FP world, but they are even more similar to... list comprehensions from the FP world.