Sign up
Forgot password?
FAQ: Login

Giordani L. First-class objects in Python: Higher-order functions, wrappers, and factories

  • djvu file
  • size 289,84 KB
Giordani L. First-class objects in Python: Higher-order functions, wrappers, and factories
Leanpub, 2022. — 29 p.
This short book will tell you all you need to know to understand first-class citizenship in Python, which is the gateway to grasp how decorators work and how functional programming can supercharge your code. The book contains three simple lessons, "First-class functions", "Nested functions", and "Factories", each one with some exercises and solutions. It also contains a section on "Functions and objects" and "Higher-order objects" where I discuss in detail how the concepts learned in the three lessons apply to classes and instances. One of the most important concepts that you can find in Python (as in other languages like JavaScript, Ruby, and Scala, just to name some of the most important ones) is that of first-class citizenship. In this book, I will discuss what first-class means and how knowing such a concept can benefit your code.
  • Sign up or login using form at top of the page to download this file.
  • Sign up
Up