Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

The Anatomy of a Tuple

In LFE, tuples wear curly braces with the kind of casual confidence usually reserved for beings who have transcended the need for matching socks. They look like this:

#(42 zaphod "Don't Panic")

This particular specimen contains three elements: an integer who thinks it knows the answer to everything, an atom who’s probably up to something, and a string offering questionable advice. Note the # prefix, which is LFE’s way of announcing “stand back, we’re doing science.”

The empty tuple #() also exists, though its existential purpose remains a subject of heated philosophical debate. It contains nothing, represents nothing, and yet somehow manages to be something. Rather like a black hole, but with better documentation.