Media Summary: Functions can take other functions as input and return them as output, making them "higher order". Textbook: ... How to implement the `fold_left` and `fold_right` functionals on lists. Textbook: How to implement the `map` functional. Textbook:
Combine Ocaml Programming Chapter 4 - Detailed Analysis & Overview
Functions can take other functions as input and return them as output, making them "higher order". Textbook: ... How to implement the `fold_left` and `fold_right` functionals on lists. Textbook: How to implement the `map` functional. Textbook: The `map` functional transforms elements of a list. Textbook: How to implement the `filter` functional on lists. Textbook: This tutorial first shows how tuples and records can be defined, used, and deconstructed. This is followed by a lightweight ...
Compilers translate code from one language to another. Interpreters execute code. Virtual machines and just-in-time compilation ... How to define some common operators for function application, including the pipeline operator Textbook: ... Comparing the difference between `open` and `include` in modules Textbook: Using pattern matching to access the pieces of a variant. Textbook: It's easy to turn the red-black tree Set implementation into a Map by storing both a key and value at each node. Comparing to hash ... Defining a persistent stack data structure as an
Using `let` definitions to bind values to names. Textbook: More about records vs. variants, and how variants can Application of functions to "too few" of arguments, and syntactic sugar. Textbook: