Functional Programming 2: Higher-Order Functions
Jacob Schrum Jacob Schrum
17.4K subscribers
2,367 views
0

 Published On Aug 5, 2020

Functional Programming languages treat functions as first-class citizens, meaning that functions can be passed as parameters to other functions, and also returned as results from other functions. Functions that accept or return functional values are higher-order functions. This video demonstrates the common higher-order functions of map and fold/reduce, and uses them to provide short, elegant definitions for rounding all numbers in a list of floating point values, calculating a sum, and even doing insertion sort. The most focus is given to the languages Haskell and Common Lisp, but this video also demonstrates the existence of map and reduce in Python, and even shows how C++ functions can have functional parameters with the use of pointers.

show more

Share/Embed