- Functional Python Programming
- Steven F. Lott
- 99字
- 2021-08-27 19:20:30
Lambdas and the lambda calculus
In a book on a purely functional programming language, it would be necessary to explain lambda calculus, and the technique invented by Haskell Curry that we call currying. Python, however, doesn't stick closely to this kind of lambda calculus. Functions are not curried to reduce them to single-argument lambda forms.
Python lambda forms are not restricted to single argument functions. They can have any number of arguments. They are restricted to a single expression, however.
We can, using the functools.partial function, implement currying. We'll save this for Chapter 10, The Functools Module.
推薦閱讀
- Python機(jī)器學(xué)習(xí):數(shù)據(jù)分析與評分卡建模(微課版)
- Getting started with Google Guava
- Instant Typeahead.js
- Python程序設(shè)計
- Backbone.js Blueprints
- Modern JavaScript Applications
- Java系統(tǒng)化項(xiàng)目開發(fā)教程
- MongoDB,Express,Angular,and Node.js Fundamentals
- BeagleBone Robotic Projects(Second Edition)
- Python預(yù)測分析實(shí)戰(zhàn)
- Python Linux系統(tǒng)管理與自動化運(yùn)維
- Kotlin語言實(shí)例精解
- Python數(shù)據(jù)預(yù)處理技術(shù)與實(shí)踐
- Web前端測試與集成:Jasmine/Selenium/Protractor/Jenkins的最佳實(shí)踐
- 程序員的英語