Functional Python Programming

(Wang) #1

Introducing Some Functional Features


Although many functional languages have sophisticated type systems, we'll rely
on Python's dynamic type resolution. In some cases, it means we'll have to write
manual coercion among types. It might also mean that we'll have to create class
definitions to handle very complex situations. For the most part, however,
Python's built-in rules will work very elegantly.


In the next chapter, we'll look at the core concepts of pure functions and how
these fit with Python's built-in data structures. Given this foundation, we can
look at higher-order functions available in Python and how we can define our
own higher-order functions.

Free download pdf