maxfunction as reported by
:t? What does the signature mean?
clampand its type signature. It accepts a lower bound, an upper bound, and a value, all
Doubles. If the value is in the given range, it returns it without modification. If it’s outside, it returns the appropriate bound.
Today we begin our foray into functional programming. We’ll discuss what is usually meant by the term functional programming. Haskell is a great example of a language that sticks closely to functional ideals, but it’s different enough that we will spend today examining its syntax, function structure, and common data types.
insides :: [a] -> [a] insides list = tail (init list)