- Functional Python Programming
- Steven F. Lott
- 230字
- 2021-08-27 19:20:20
Understanding Functional Programming
Functional programming defines a computation using expressions and evaluation; often these are encapsulated in function definitions. It de-emphasizes or avoids the complexity of state change and mutable objects. This tends to create programs that are more succinct and expressive. In this chapter, we'll introduce some of the techniques that characterize functional programming. We'll identify some of the ways to map these features to Python. Finally, we'll also address some ways in which the benefits of functional programming accrue when we use these design patterns to build Python applications.
Python has numerous functional programming features. It is not a purely a functional programming language. It offers enough of the right kinds of features that it confers the benefits of functional programming. It also retains all the optimization power of an imperative programming language.
We'll also look at a problem domain that we'll use for many of the examples in this book. We'll try to stick closely to Exploratory Data Analysis (EDA) because its algorithms are often good examples of functional programming. Furthermore, the benefits of functional programming accrue rapidly in this problem domain.
Our goal is to establish some essential principles of functional programming. The more serious Python code will begin in Chapter 2, Introducing Some Functional Features.
- 深入淺出WPF
- Practical DevOps
- UI智能化與前端智能化:工程技術(shù)、實(shí)現(xiàn)方法與編程思想
- Podman實(shí)戰(zhàn)
- SQL基礎(chǔ)教程(視頻教學(xué)版)
- Java程序設(shè)計:原理與范例
- Mastering Ext JS
- 大學(xué)計算機(jī)基礎(chǔ)實(shí)驗(yàn)指導(dǎo)
- Visual FoxPro程序設(shè)計習(xí)題集及實(shí)驗(yàn)指導(dǎo)(第四版)
- 零基礎(chǔ)Java學(xué)習(xí)筆記
- 小程序,巧應(yīng)用:微信小程序開發(fā)實(shí)戰(zhàn)(第2版)
- OpenCV with Python Blueprints
- Visual Basic 程序設(shè)計實(shí)踐教程
- INSTANT Premium Drupal Themes
- Mastering Clojure