Examples from "Functional JavaScript" by Michael Fogus