Media Summary: How to implement the `fold_left` and `fold_right` functionals on lists. Textbook: Functions can take other functions as input and return them as output, making them "higher order". Textbook: ... Using `let` definitions to bind values to names. Textbook:
Map Ocaml Programming Chapter 4 Video 2 - Detailed Analysis & Overview
How to implement the `fold_left` and `fold_right` functionals on lists. Textbook: Functions can take other functions as input and return them as output, making them "higher order". Textbook: ... Using `let` definitions to bind values to names. Textbook: How to combine elements of a list, as a warmup for the `fold` functional. Textbook: How to define some common operators for function application, including the pipeline operator Textbook: ... It's easy to turn the red-black tree Set implementation into a
What looks like mutability in the toplevel is not -- it's really just a consequence of scope. Textbook: ... Application of functions to "too few" of arguments, and syntactic sugar. Textbook: Defining a persistent stack data structure as an