Functional Python Programming

id: 345496 not VIP Open in MaM

By Steven Lott

Language: English

Category: Ebook - Computer/Internet

Categories: Computer/Internet

Size: 2.9 MiB mobi Files: 1

Uploader: andresthor

Uploaded At: 2016-12-13 16:42:59

9781784396992, python, functional, programming, packt

Description

Book Description

Python is an easy-to-learn and extensible programming language that offers a number of functional programming features. It's ideally suited to a number of applications in the broad space of data science.

This practical guide demonstrates the Python implementation of a number of functional programming techniques and design patterns. Starting with a general overview of functional programming concepts, you will explore common functional features such as first-class and higher-order functions, pure functions and more, and how these are accomplished in Python. Additionally, you will cover how common functional optimizations can be handled in Python. You'll also explore data preparation techniques and data exploration in depth. Moving on, you will learn how the Python standard library fits the functional programming model. The book concludes with a look at the PyMonad project and some larger examples.

By the end of this book, you will be able to understand what functional programming is all about, its impact on the programming workflow, why it's important, and how to implement it in Python.

What You Will Learn

  • Use Python's generator functions and generator expressions to work with collections in a non-strict (or lazy) manner
  • Utilize Python library modules including itertools, functools, multiprocessing, and concurrent.futures for efficient functional programs
  • Use Python strings using object-oriented suffix notation and prefix notation
  • Avoid stateful classes with families of tuples
  • Design and implement decorators to create composite functions
  • Use functions like max(), min(), map(), filter(), and sorted()
  • Write higher-order functions

Table of Contents

   1: INTRODUCING FUNCTIONAL PROGRAMMING
   2: INTRODUCING SOME FUNCTIONAL FEATURES
   3: FUNCTIONS, ITERATORS, AND GENERATORS
   4: WORKING WITH COLLECTIONS
   5: HIGHER-ORDER FUNCTIONS
   6: RECURSIONS AND REDUCTIONS
   7: ADDITIONAL TUPLE TECHNIQUES
   8: THE ITERTOOLS MODULE
   9: MORE ITERTOOLS TECHNIQUES
 10: THE FUNCTOOLS MODULE
 11: DECORATOR DESIGN TECHNIQUES
 12: THE MULTIPROCESSING AND THREADING MODULES
 13: CONDITIONAL EXPRESSIONS AND THE OPERATOR MODULE
 14: THE PYMONAD LIBRARY
 15: A FUNCTIONAL APPROACH TO WEB SERVICES
 16: OPTIMIZATIONS AND IMPROVEMENTS

Other Torrents

Ebook - Computer/Internet
Functional Python Programming 1st Edition
by Steven Lott
EPUB, PDF, 1st edition 2015
epub, pdf | 0 comments
Computer/Internet
2
21.8 MiB
2016-04-17 23:32:31
24 seeders
0 leechers
339 snatches