Functional Python Programming, 2nd Edition

0
(0)

Functional Python Programming, 2nd Edition
 

  • Author:Steven F. Lott
  • Length: 360 pages
  • Edition: 2nd Revised edition
  • Publisher: Packt Publishing
  • Publication Date: 2018-07-10
  • ISBN-10: 1788627067
  • ISBN-13: 9781788627061
  • Sales Rank: #1195585 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    Functional Python Programming – Second Edition: Monads, Lazy evaluation, Generator functions, and more

    Create succinct and expressive implementations with functional programming in Python

    Key Features

    • Implement common functional programming design patterns and techniques in Python
    • Learn how to choose between imperative and functional approaches based on expressiveness, clarity, and performance
    • Apply functional Python to common Exploratory Data Analysis (EDA) programming problems

    Book Description

    If you’re a Python developer who wants to discover how to take the power of functional programming and bring it into your own programs then this book is essential for you, even if you know next to nothing about the paradigm.

    Starting with a general overview of functional concepts you’ll explore common functional features such as first-class and higher-order functions, pure functions and more, and how these are accomplished in Python 3.6 to give you the core foundations you’ll build upon. After that, you’ll discover common functional optimizations for Python to help your apps reach even higher speeds. You will learn FP concepts such as Lazy Evaluation using Python’s generator functions and expressions. Going forward, you will learn to design and implement decorators to create composite functions. You’ll also explore data preparation techniques and data exploration in depth, along with learning how the Python standard library fits the functional programming model. Finally, to top off your journey into the world of function Python you’ll at look at the PyMonad project and some larger examples to put everything into perspective.

    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

    Who This Book Is For

    This book is for Python developers who would like to perform Functional programming with Python. Python Programming knowledge is assumed.

    Table of Contents

    Chapter 1: Understanding Functional Programming
    Chapter 2: Introducing Essential Functional Concepts
    Chapter 3: Functions, Iterators, And Generators
    Chapter 4: Working With Collections
    Chapter 5: Higher-Order Functions
    Chapter 6: Recursions And Reductions
    Chapter 7: Additional Tuple Techniques
    Chapter 8: The Itertools Module
    Chapter 9: More Itertools Techniques
    Chapter 10: The Functools Module
    Chapter 11: Decorator Design Techniques
    Chapter 12: The Multiprocessing And Threading Modules
    Chapter 13: Conditional Expressions And The Operator Module
    Chapter 14: The Pymonad Library
    Chapter 15: A Functional Approach To Web Services
    Chapter 16: Optimizations And Improvements

    中文:

    书名:Functional Python Programming, 2nd Edition

    函数式Python编程第二版:Monad、惰性求值、生成器函数等

    使用Python中的函数式编程创建简洁且富有表现力的实现

    Key Features

    • 用Python语言实现常用的函数式编程设计模式和技术
    • 了解如何根据表现力、清晰度和性能在命令式方法和函数式方法之间进行选择
    • 函数式Python在常见探索性数据分析(EDA)编程问题中的应用

    Book Description

    如果您是一名希望发现如何利用函数式编程的力量并将其应用到您自己的程序中的Python开发人员,那么这本书对您来说是必不可少的,即使您对该范例几乎一无所知。

    从函数概念的一般概述开始,您将探索常见的函数功能,如一类函数和高阶函数、纯函数等,以及如何在Python3.6中实现这些功能,从而为您提供将在其上构建的核心基础。在此之后,您将发现针对Python的常见函数优化,以帮助您的应用程序达到更高的速度。您将学习FP概念,例如使用Python的生成器函数和表达式进行延迟求值。接下来,您将学习如何设计和实现装饰器来创建复合函数。您还将深入探讨数据准备技术和数据探索,并了解Python标准库如何适应函数式编程模型。最后,为了结束您的Python函数世界之旅,我们来看一下PyMonad项目和一些更大的示例,让您更全面地了解一切。

    What you will learn

    • 使用Python的生成器函数和生成器表达式以非严格(或懒惰)的方式处理集合
    • 利用Python库模块,包括IterTools、FuncTool、多处理和并发。未来将实现高效的函数式程序
    • 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

    Who This Book Is For

    这本书是为想要用Python执行函数式编程的Python开发人员编写的。假定您具有Python编程知识。

    Table of Contents

    Chapter 1: Understanding Functional Programming
    Chapter 2: Introducing Essential Functional Concepts
    Chapter 3: Functions, Iterators, And Generators
    Chapter 4: Working With Collections
    Chapter 5: Higher-Order Functions
    Chapter 6: Recursions And Reductions
    Chapter 7: Additional Tuple Techniques
    Chapter 8: The Itertools Module
    Chapter 9: More Itertools Techniques
    Chapter 10: The Functools Module
    Chapter 11: Decorator Design Techniques
    Chapter 12: The Multiprocessing And Threading Modules
    Chapter 13: Conditional Expressions And The Operator Module
    Chapter 14: The Pymonad Library
    Chapter 15: A Functional Approach To Web Services
    Chapter 16: Optimizations And Improvements

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册