Using High-Order Functions

We frequently encounter questions such as, "Just curious, what are the benefits of applying pure functional programming concepts to imperative languages (other than making the code hard to read for others)?"

In this chapter, we will address this common misconception using high-order functions.

Our goal in this chapter is to:

  • Understand the characteristics of functional programming (FP)
  • Understand the purpose of generics
  • Understand how FP improves performance
  • Understand currying
  • Implement Map, Filter, and Reduce functions
  • Implement lazy evaluation using Goroutines and a Go channel

Get Learning Functional Programming in Go now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.