@@ -7,53 +7,62 @@ aliases = ["docs/reference/hoon-expressions/irregular/"]
8##### Reading guide
8##### Reading guide
10+Headings contain runes, phonetics and tokens. Description contains a link to the
10−Headings contain runes, phonetics and tokens. Description contains a link to the docs and a short description of the rune. Both regular (R) and irregular (I) forms are given.
11+docs and a short description of the rune. Both regular and irregular forms are given.
12Want to `Ctrl-f` to find out the meaning of something weird you saw? Search for `\symbol`. ie `\?` or `\=`. It'll show you to the irregular forms that uses that symbol.
13Want to `Ctrl-f` to find out the meaning of something weird you saw? Search for `\symbol`. ie `\?` or `\=`. It'll show you to the irregular forms that uses that symbol.
14−## . dot (nock)
15+## `.` dot (nock)
16Anything Nock can do, Hoon can do also.
17Anything Nock can do, Hoon can do also.
18−### .+ dotlus
19+### `.+` dotlus
20[docs](@/docs/hoon/reference/rune/dot.md#dotlus) \\+
21[docs](@/docs/hoon/reference/rune/dot.md#dotlus) \\+
21`[%dtls p=atom]`: increment an atom with Nock 4.
23`[%dtls p=atom]`: increment an atom with Nock 4.
23−R: `.+(p)`
25+Regular: `.+(p)`
26−### .= dottis
29+### `.=` dottis
28[docs](@/docs/hoon/reference/rune/dot.md#dottis) \\=
31[docs](@/docs/hoon/reference/rune/dot.md#dottis) \\=
29`[%dtts p=hoon q=hoon]`: test for equality with Nock 5.
33`[%dtts p=hoon q=hoon]`: test for equality with Nock 5.
31−R: `.=(p q)`
35+Regular: `.=(p q)`
34−## ; mic (make)
39+## `;` mic (make)
36Miscellaneous useful macros.
41Miscellaneous useful macros.
38−### ;: miccol
43+### `;:` miccol
40[docs](@/docs/hoon/reference/rune/mic.md#miccol) \\:
45[docs](@/docs/hoon/reference/rune/mic.md#miccol) \\:
41`[%mccl p=hoon q=(list hoon)]`: call a binary function as an n-ary function.
47`[%mccl p=hoon q=(list hoon)]`: call a binary function as an n-ary function.
43−R: `;:(p q)`
49+Regular: `;:(p q)`
46−## : col (cells)
53+## `:` col (cells)
48The cell runes.
55The cell runes.
50−### :- colhep
57+### `:-` colhep
52[docs](@/docs/hoon/reference/rune/col.md#colhep) \\[\\]\\^\\+\\\`\\~
59[docs](@/docs/hoon/reference/rune/col.md#colhep) \\[\\]\\^\\+\\\`\\~
53`[%clhp p=hoon q=hoon]`: construct a cell (2-tuple).
61`[%clhp p=hoon q=hoon]`: construct a cell (2-tuple).
55−R: `:-(p q)`
63+Regular: `:-(p q)`
59 [a b] ==> :-(a b)
68 [a b] ==> :-(a b)
@@ -66,21 +75,24 @@ I:
66 [a b]~ ==> [[a b] ~]
75 [a b]~ ==> [[a b] ~]
69−## = tis (flow)
78+## `=` tis (flow)
71Flow hoons change the subject. All non-flow hoons (except cores) pass the subject down unchanged.
80Flow hoons change the subject. All non-flow hoons (except cores) pass the subject down unchanged.
73−### =< tisgal
82+### `=<` tisgal
75[docs](@/docs/hoon/reference/rune/tis.md#tisgal) \\:
84[docs](@/docs/hoon/reference/rune/tis.md#tisgal) \\:
76`[%tsgl p=hoon q=hoon]`: compose two hoons, inverted.
86`[%tsgl p=hoon q=hoon]`: compose two hoons, inverted.
78−R: `=<(p q)`
88+Regular: `=<(p q)`
81−## | bar (core)
92+## `|` bar (core)
83[docs](@/docs/hoon/reference/rune/bar.md) \\$
94[docs](@/docs/hoon/reference/rune/bar.md) \\$
84Core hoons are flow hoon.
96Core hoons are flow hoon.
86Technically not irregular syntax, but worth mentioning.
98Technically not irregular syntax, but worth mentioning.
@@ -92,103 +104,143 @@ Technically not irregular syntax, but worth mentioning.
93The above runes produce a core with a single arm, named `$` ("buc"). We can recompute this arm with changes, useful for recursion among other things. Commonly used with the irregular syntax for `%=`, `:make`, like so: `$()`.
105The above runes produce a core with a single arm, named `$` ("buc"). We can recompute this arm with changes, useful for recursion among other things. Commonly used with the irregular syntax for `%=`, `:make`, like so: `$()`.
95−## % cen (call)
107+## `%` cen (call)
97The invocation family of runes.
109The invocation family of runes.
99−### %= centis
111+### `%=` centis
101[docs](@/docs/hoon/reference/rune/cen.md#centis) \\(\\)
113[docs](@/docs/hoon/reference/rune/cen.md#centis) \\(\\)
102`[%cnts p=wing q=(list (pair wing hoon))]`: take a wing with changes.
115`[%cnts p=wing q=(list (pair wing hoon))]`: take a wing with changes.
104−R: `%=(p a 1)`
117+Regular: `%=(p a 1)`
107−### %~ censig
121+### `%~` censig
109[docs](@/docs/hoon/reference/rune/cen.md#censig) \\~
123[docs](@/docs/hoon/reference/rune/cen.md#censig) \\~
110`[%cnsg p=wing q=hoon r=hoon]`: call with multi-armed door.
125`[%cnsg p=wing q=hoon r=hoon]`: call with multi-armed door.
112−R: `%~(p q r)`
127+Regular: `%~(p q r)`
129+Irregular: `~(p q r)`
115−### %- cenhep
131+### `%-` cenhep
117[docs](@/docs/hoon/reference/rune/cen.md#cenhep) \\(\\)
133[docs](@/docs/hoon/reference/rune/cen.md#cenhep) \\(\\)
118`[%cnhp p=hoon q=hoon]`: call a gate (function).
135`[%cnhp p=hoon q=hoon]`: call a gate (function).
120−R: `%-(p q)`
137+Regular: `%-(p q)`
123Note: `(p)` becomes `$:p` (`=<($ p)`), which behaves as you would expect (func call w/o args).
141Note: `(p)` becomes `$:p` (`=<($ p)`), which behaves as you would expect (func call w/o args).
125−## $ buc (mold)
143+## `$` buc (mold)
127A mold is a gate (function) that helps us build simple and rigorous data structures.
145A mold is a gate (function) that helps us build simple and rigorous data structures.
129−### $? bucwut
147+### `$?` bucwut
131[docs](@/docs/hoon/reference/rune/buc.md#bucwut) \\?
149[docs](@/docs/hoon/reference/rune/buc.md#bucwut) \\?
132`[%bcwt p=(list model)]`: mold which normalizes a general union.
151`[%bcwt p=(list model)]`: mold which normalizes a general union.
134−R: `$?(p)`
153+Regular: `$?(p)`
137−### $_ buccab
157+### `$_` buccab
139[docs](@/docs/hoon/reference/rune/buc.md#buccab) \\_
159[docs](@/docs/hoon/reference/rune/buc.md#buccab) \\_
140`[%bccb p=value]`: mold which normalizes to an example.
161`[%bccb p=value]`: mold which normalizes to an example.
142−R: `$_(p)`
163+Regular: `$_(p)`
145−## ? wut (test)
167+## `?` wut (test)
147Hoon has the usual branches and logical tests.
169Hoon has the usual branches and logical tests.
149−### ?! wutzap
171+### `?!` wutzap
151[docs](@/docs/hoon/reference/rune/wut.md#wutzap) \\!
173[docs](@/docs/hoon/reference/rune/wut.md#wutzap) \\!
152`[%wtzp p=hoon]`: logical not.
175`[%wtzp p=hoon]`: logical not.
154−R: `?!(p)`
177+Regular: `?!(p)`
157−### ?& wutpam
181+### `?&` wutpam
159[docs](@/docs/hoon/reference/rune/wut.md#wutpam) \\&
183[docs](@/docs/hoon/reference/rune/wut.md#wutpam) \\&
160`[%wtpm p=(list hoon)]`: logical and.
185`[%wtpm p=(list hoon)]`: logical and.
162−R: `?&(p)`
187+Regular: `?&(p)`
165−### ?| wutbar
191+### `?|` wutbar
167[docs](@/docs/hoon/reference/rune/wut.md#wutbar) \\|
193[docs](@/docs/hoon/reference/rune/wut.md#wutbar) \\|
168`[%wtbr p=(list hoon)]`: logical or.
195`[%wtbr p=(list hoon)]`: logical or.
170−R: `?|(p)`
197+Regular: `?|(p)`
173−## ^ ket (cast)
201+## `^` ket (cast)
175Lets us adjust types without violating type constraints.
203Lets us adjust types without violating type constraints.
207+[docs](@/docs/hoon/reference/ket.md#ketcol) \\,
209+`[%ktcl p=spec]`: mold gate for type `p`.
177−### ^- kethep
215+### `^-` kethep
179[docs](@/docs/hoon/reference/rune/ket.md#kethep) \\\`
217[docs](@/docs/hoon/reference/rune/ket.md#kethep) \\\`
180`[%kthp p=model q=value]`: typecast by mold.
219`[%kthp p=model q=value]`: typecast by mold.
182−R: `^-(p q)`
221+Regular: `^-(p q)`
223+Irregular: `` `p`q ``
227+[docs](@/docs/hoon/reference/rune/ket.md#kettar) \\*
229+`[%kttr p=spec]`: produce bunt value of mold.
185−### ^= kettis
235+### `^=` kettis
187[docs](@/docs/hoon/reference/rune/ket.md#kettis) \\=
237[docs](@/docs/hoon/reference/rune/ket.md#kettis) \\=
188`[%ktts p=toga q=value]`: name a value.
239`[%ktts p=toga q=value]`: name a value.
190−R: `^=(p q)`
241+Regular: `^=(p q)`
193## Miscellaneous
245## Miscellaneous
@@ -220,6 +272,7 @@ See [%sand](@/docs/hoon/reference/rune/constants.md#warm) for other irregular de
222[docs](@/docs/hoon/reference/limbs/limb.md) \\+\\.\\^
274[docs](@/docs/hoon/reference/limbs/limb.md) \\+\\.\\^
223`[%limb p=(each @ud [p=@ud q=@tas])]`: attribute of subject.
276`[%limb p=(each @ud [p=@ud q=@tas])]`: attribute of subject.
225- `+15` is slot 15
278- `+15` is slot 15