Functional Programming in Python: The "map()" Function

Опубликовано: 13 Сентябрь 2017
на канале: Real Python
47,762
906

https://dbader.org/python-tricks ► Write better & cleaner code using Python's advanced features

In this Python tutorial you'll discover further basics of functional programming, namely how to use the "map()" function to transform data structures.

We'll take an example data set represented using an immutable data structure from the previous videos in this series, and then we'll create a "transformed" version of the same data using Python's built-in map function.

"map()" is one of the functional programming primitives or building blocks available in Python and it's useful in a number of contexts.

Later in the video you'll also see how the map function relates to list comprehensions and generator expressions and how using them is (arguably) more Pythonic that relying on plain "map()" calls.

This video is part of a series of Python functional programming tutorials that I'm recording so stay tuned for the next instalment.

Be sure to check out these associated articles and tutorials if you want to dive deeper into the subject:

Immutable Data Structures in Python:    • Functional Programming in Python: Immutabl...  
https://dbader.org/blog/python-lambda...
List comprehensions: https://dbader.org/blog/list-dict-set...

FREE COURSE – "5 Thoughts on Mastering Python" https://dbader.org/python-mastery

SUBSCRIBE TO THIS CHANNEL: https://dbader.org/youtube

* *

► Python Developer MUGS, T-SHIRTS & MORE: https://nerdlettering.com

► PythonistaCafe – A peer-to-peer learning community for Python developers: https://www.pythonistacafe.com

FREE Python Coding Tutorials & News:
» Python Tutorials: https://dbader.org
» Python News on Twitter:   / @dbader_org  
» Weekly Tips for Pythonistas: https://dbader.org/newsletter
» Subscribe to this channel: https://dbader.org/youtube


На этой странице сайта вы можете посмотреть видео онлайн Functional Programming in Python: The "map()" Function длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Real Python 13 Сентябрь 2017, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 47,762 раз и оно понравилось 906 зрителям. Приятного просмотра!