3 ms·
> This is trivially true, any datatype can be encoded as a function. To elaborate: this is called the church encoding of the data type. Particularly interesti
by eru 10y ago
> This is trivially true, any datatype can be encoded as a function.
To elaborate: this is called the church encoding of the data type. Particularly interesting for recursive data types.
The most common example is probably 'foldr' (or 'reduce' in Lisp-parlance) for linked lists.