Skip to Content
Learning Functional Programming in Go
book

Learning Functional Programming in Go

by Lex Sheehan
November 2017
Intermediate to advanced
670 pages
17h 35m
English
Packt Publishing
Content preview from Learning Functional Programming in Go

Intermediate functions

Intermediate functions are not evaluated until the terminal function has been processed.

Lazy evaluation is an evaluation strategy that delays the processing of an intermediate function until its value is required. It can be combined with memoization, where the evaluation is first cached so that subsequent requests for that value return the cached value immediately without reevaluating the expression that originally created it.

A few of the more popular intermediate functions include map, filter, and sort.

We can create many other high-order functions to process the incoming stream, which is often a collection. We'll soon see functional programming libraries that provide a plethora of variations of these basic function ...

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

Learning Functional Programming

Learning Functional Programming

Jack Widman

Publisher Resources

ISBN: 9781787281394Supplemental Content