Simple snippet that demonstrates recursively defined discriminated unions, the Y combinator (for encoding recursive functions) and recursive processing of tree-like structures
6 people like thisPosted: 10 years ago by Daniel Jackson
Describes a function called "fix" that can be used to generate recursive functions from non-recursive functions, with some simple examples. (Updated with slightly improved comments.)
3 people like thisPosted: 2 years ago by Brian Berns
Calculate triangle numbers in the most inefficient way possible!
3 people like thisPosted: 2 years ago by Brian Berns