Functional programming

cosmos 4th November 2016 at 2:43pm

Introduction to Functional Programming youtube videos

An introduction to functional programming


Functional programming on JavaScript

  • Higher-order functions: functions that take functions as arguments. Functions are like variables too. Examples:
  • Functors. Objects that hold collections of objects (like arrays) that have the map() function so that one can map these collections to other collections of the same size. One can made the analogy more precise between these and functors in Category theory which is very related to functional programming ideas.
  • Monoids.

Nice game to explain map, reduce, filter: http://david-peter.de/cube-composer/

Functional programming languages

Clojure

The syntax is so nice. As he says in the vid, there is basically no syntax. It also reminds me of the data structures used for CASs

Lisp

Scala. yt vids

Scheme

Haskell. http://learnyouahaskell.com/