Skip to Content
Hands-On Reactive Programming with Python
book

Hands-On Reactive Programming with Python

by Romain Picard
October 2018
Intermediate to advanced
420 pages
10h 26m
English
Packt Publishing
Content preview from Hands-On Reactive Programming with Python

Chapter 3

What is a pure function?

A pure function is a function whose output depends only on its input parameters. A pure function has a deterministic behavior. This means that if it is called several times with the same values as input, then it will returns the same results. This deterministic behavior is called referential transparency in functional programming.

What is a higher-order function?

A higher-order function is a function that takes a function as an input parameter, and/or returns a function as an output. Higher-order functions are very useful for implementing abstractions or generic behaviors.

Why should side-effects be as small as possible?

Side-effects are parts of code that are not deterministic. This implies that this code ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Python Programming with Design Patterns

Python Programming with Design Patterns

James W. Cooper

Publisher Resources

ISBN: 9781789138726Supplemental Content