07 higher order functions handout (1)
Higher-Order Functions Thumrongsak Kosiyatrakul Thumrongsak Kosiyatrakul Higher-Order Functions Higher-Order Function Every function in Haskell takes exactly one argument Consider the function max ghci> max 5 12 ghci> :t max max :: Ord a => a -> a -> a We usually think that the max function takes two arguments All functions that look like they …