2q: Molds and Mold-Builders

$axis

Tree address.

A Nock axis inside a $noun. After the leading 1, in binary, a 1 signfies right and 0 left.

Source

+$  axis  @

Examples

> =axis `axis`7

> axis
7

> `@ub`axis
0b111

> =noun [[4 5] [6 14 15]]

> .*(noun [0 axis])
[14 15]

$bean

Boolean.

0, &, or %.y are true, and 1, |, and %.n are false.

Note 1 is false and 0 is true. This is sometimes referred to as "loobean".

Source

Examples


$flag

Boolean.

Same as $bean.

Source


$char

Character.

A single @t character.

Source

Examples


$cord

UTF-8 text.

One of Hoon's two string types (the other being $tape). A cord is an $atom of UTF-8 text.

Source

Examples

Discussion

Aura @t designates a Unicode $atom, little-endian: the first character in the text is the least-significant byte.

+trip converts from $cord to $tape, and +crip converts from $tape to $cord.


$byts

Bytes, least-significant first.

An $atom .dat with its byte-length specified in .wid. This is to handle leading zeros that are typically ignored.

Source

Examples


$date

Parsed date.

A boolean designating AD or BC, a year $atom, a month $atom, and a $tarp, which is a day $atom and a time.

Source

Examples

Discussion

See also: +year, +yore


$knot

URL-safe path element text.

An $atom type that only permits lower-case letters, numbers, and four special characters: hyphen, tilde, underscore and period.

Source

Examples


$noun

Any $noun.

Source

Examples


$path

Like a Unix path.

A path is a list of $knot.

Source

Examples


$stud

Standard name.

Source


$tang

Bottom-first error.

A list of $tanks. It's for printing types and bottom-up printing of stack traces.

Source

Examples


$tank

Formatted print tree.

A $tank is one of four cases:

  • Just a $cord.

  • %leaf is just a $tape.

  • %palm is a list of $tank delimited by the strings in .p, with back-steps at new lines.

  • %rose is a list of $tank delimited by the strings in .p without back-steps at new lines.

Source

Examples


$tape

List of characters.

One of Hoon's two string types, the other being +cord. A tape is a list of @tD.

Source

Examples


$tour

UTF-32 clusters.

A $tour is a list of UTF-32 characters.

Source

Examples


$tarp

Parsed time.

The time component of a $date: day, hour, minute, second and a list of @ux for precision.

Source

Examples


$term

Hoon constant.

A restricted text $atom for Hoon constants. The only characters permitted are lowercase ASCII letters, -, and 0-9, the latter two of which cannot be the first character. The syntax for @tas is the text itself, always preceded by %. The empty @tas has a special syntax, $.

Source

Examples


$wain

List of strings.

A list of $cords. A $wain is used instead of a single $cord with \n.

Source

Examples


$wall

List of list of characters.

A list of $tapes. +wall is used instead of a single $tape with \n.

Source

Examples


Last updated