Mary's functional programming tutorial

original found at https://gist.github.com/maryrosecook/7361149