filmov
tv
Python's map and filter functions

Показать описание
How do Python's built-in map and filter functions work? And should you use them or should you use list comprehensions or generator expressions instead?
00:00 The map function transforms each item
00:38 The filter function filters items down
01:25 Map and filter are equivalent to writing a generator expression
02:24 Nested map and filter calls vs generator expressions
04:12 Summary
00:00 The map function transforms each item
00:38 The filter function filters items down
01:25 Map and filter are equivalent to writing a generator expression
02:24 Nested map and filter calls vs generator expressions
04:12 Summary