shrub/pub/doc/hoon/runes/bc.md
2015-06-19 17:16:48 -04:00

856 B

buc $ %buc

Tile construction

The $ runes construct ++tiles. ++tiles are one of our primary building blocks in hoon, they define how we reduce our ASTs into well typed nouns that nock can compute. You can think of a ++tile sort of like a typeclass in Haskell.

Forks

++tiles that can be one of multiple cases.

$? Non-empty list of cases.

$| Fork between atom and cell.

$& Fork between cells whose head is a cell and cells whose head is an atom.


Tuples

$: Unlabelled arrays.

$= Tuple with ++faces.


Reductions

Important convenience methods for working with tiles, and are very broadly used.

$* bunt

$, clam

$@ whip