Church Encoding - List Encodings

List Encodings

An encoding of (immutable) lists of varying length must define a constructor for creating an empty list (nil), an operation testing whether or not a list is empty (isnil), an operation to prepend a given value to a (possibly empty) list (cons), and two operations to determine the first element and the list of the remaining elements of a nonempty list (head and tail).

Read more about this topic:  Church Encoding

Famous quotes containing the word list:

    Hey, you dress up our town very nicely. You don’t look out the Chamber of Commerce is going to list you in their publicity with the local attractions.
    Robert M. Fresco, and Jack Arnold. Dr. Matt Hastings (John Agar)