Skip to main content

Patterns in Functional Programming

Jeremy Gibbons

Abstract

While software design patterns were originally developed in object-oriented programming, subsequent work has sought to uncover structures that apply to functional programming. This book explores the recurring patterns of computation that arise in diverse and distinct programs. These patterns relate the shape of data with the shape of programs that manipulate such data. By learning about these patterns, readers gain insight into program construction and become better equipped to design, extend, and modify software and languages. Following a self-contained introduction to tools from algebra and category theory, these tools are used to provide a framework for explaining what patterns are. The text is presented in concise, digestible chapters. Exercises and complete solutions are provided throughout to aid understanding, with the final part covering a series of extended examples. This is an essential resource for graduate students and professionals who want to better understand how programs are constructed.

ISBN
9781108864718
Publisher
Cambridge University Press
Year
2027