▲ | somewhereoutth 20 hours ago | |
Interestingly, in the Lambda Calculus, where everything is a function, a standard representation for a natural number n (i.e. a whole number >= 0), is indeed a function that 'iterates' (strictly, folds/recurses) n times. E.g. 3: (f, x) => f(f(f(x))) |