DJ Adams

FOFP Fundamentals of functional programming

Notes and resources for an introductory lecture on the fundamentals of functional programming at Xaverian College.

I'm writing it in draft mode in public, as a sort of experiment. Feedback gratefully accepted!

Part 1 - First-class functions, list processing and higher-order functions

Introduction

Trying things out

Some basic list processing

A different approach with map

Creating functions

Part 2 - More higher order functions

A look at filter

Transforming with fold (aka reduce)

Part 3 - Different syntaxes and languages

JavaScript and ES6

Fat arrows and more concise function definitions

Our examples in Clojure

Part 4 - Classic list processing

(To cover lists, head+tail / first+rest and recursion)