First-class functions, composition, and point-free style — In part 1, I introduced the basic concepts of Functional Programming. In part 2, we cover first-class functions and point-free style. First class functions PHP 5.3 introduced anonymous functions, and more importantly made functions a first class datatype like strings and integers. They can be assigned to variables, passed as parameters to functions…