-
can take functions as parameters
-
can return functions as return values
-
define what stuff is
- Partially applied functions
-
we usually use right folds when we're building up new lists from a list.
- because ++ function is much more expensive than :
-
right folds work on infinite lists, whereas left ones don't!
-
if you take an infinite list at some point and you fold it up from the right, you'll eventually reach the beginning of the list
- If the function doesn't make sense when given an empty list
- they report all the intermediate accumulator states
- filter doesn't work on infinite lists
- $ function has the lowest precedence
- function application with $ is right-associative.
- is right-associative