|
Post by Martin McBride on Oct 1, 2019 12:27:04 GMT
ebook (PDF) covering functional programming in Python. The book covers the basics of functional programming including function objects, immutability, recursion, iterables, comprehensions and generators. It also covers more advanced topics such as closures, memoization, partial functions, currying, functors and monads. No prior knowledge of functional programming is required, just a working knowledge of Python. Contents: What is functional programming? Objects, variables, and functions as objects. Immutable objects. Recursion. Closures. Iterators. Transforming and reducing iterables. Comprehensions. Generators. Partial application and currying. Functors and monads. itertools, functools and other useful libraries. Buy now or download a 3 chapter preview.
|
|
|
Post by Martin McBride on Oct 25, 2019 19:52:02 GMT
You can now buy Functional Programming in Python from the following places: Leanpub name your own price SendOwl storeAmazon
|
|
|
Post by Mario Lurig on Jan 31, 2021 0:02:50 GMT
That SendOwl link doesn't work. Found it on Amazon, bought through LeanPub.
|
|
|
Post by Martin McBride on Feb 3, 2021 21:33:20 GMT
That SendOwl link doesn't work. Found it on Amazon, bought through LeanPub. Thanks for pointing that out, I stopped using SendOwl a while ago as Leanpub is more suited to books. Link has been struck out now.
|
|
|
Post by Mario Lurig on Feb 13, 2021 9:05:15 GMT
I keep catching little typos. I move past them because the overall structure of the book is 90% of what I wanted, so thanks for that. I'm on chapter 5, but currently the most egregious issue was the missing example at the bottom of 3.5.1 and subsequently, the missing comma in the first code block in 3.5.1 which reads: `u = v[:n] + (3) + v[n:]` and should read: `u = v[:n] + (3,) + v[n:]`
I only caught this because I decided to try and write the missing example and then, since I'm not use to using tuples (new to Python), tried out both as functions and discovered the need for a single-element tuple to include the comma. I also learned, which was not noted here in slices (I have a lot of notes in the margins of this specific page), that while you lead-in to the section referring to them all as _sequences_, the slice example you gave very much requires type matching. You cannot `string[:n] + (tuple) + string[n:]`. Just seemed like a bit of a rush through this page.
Anyway, if I find any more major items, I'll let you know (if you want).
Cheers, Mario (mariolurig.com)
|
|