Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Destroy All Ifs – A Perspective from Functional Programming. Parent comment
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.
There are no comments on this comment yet.
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.