2title = "2q: Molds and Mold-Builders"
10A single character. Aura `@tD` designates a single UTF-8 byte. All parsers
11consume `tape`s, which are lists of `char`.
35One of Hoon's two string types (the other being `tape`). A cord is an
65Aura `@t` designates a Unicode atom, little-endian: the first character
66in the text is the least-significant byte.
68[`trip`](@/docs/reference/library/4b.md) converts from `cord` to `tape`, and [`crip`](@/docs/reference/library/4b.md) converts
78A boolean designating AD or BC, a year atom, a month atom, and a `tarp`,
79which is a day atom and a time.
84 ++ date [[a=? y=@ud] m=@ud t=tarp]
91 [[a=%.y y=0] m=0 t=[d=0 h=0 m=0 s=0 f=~]]
93 > `date`(yore ~2014.6.6..21.09.15..0a16)
94 [[a=%.y y=2.014] m=6 t=[d=6 h=21 m=9 s=15 f=~[0xa16]]]
97 ~2018.5.25..17.55.15..9ad8
103See also: [`year`](@/docs/reference/library/3c.md), [`yore`](@/docs/reference/library/3c.md)
110An atom type that only permits ASCII characters.
132Generic print structure
134A list of `tank`s. It's for printing types and bottom-up printing of stack
149 > (~(win re [%palm ["1" "2" "3" "4"] [%leaf "foobar"] [%leaf "bazbud"] [%leaf "zzzzzzqaaa"] ~]) 0 50)
150 <<"23foobar1bazbud1zzzzzzqaaa4">>
152 > (~(win re [%palm ["1" "2" "3" "4"] [%leaf "foobar"] [%leaf "bazbud"] [%leaf "zzzzzzqaaa"] ~]) 0 10)
153 <<"2 foobar" " bazbud" "zzzzzzqaaa">>
155 > (~(win re [%rose ["1" "2" "3"] [%leaf "foobar"] [%leaf "bazbud"] ~]) 0 20)
156 <<"2foobar1bazbud3">>
158 > (~(win re [%rose ["1" "2" "3"] [%leaf "foobar"] [%leaf "bazbud"] ~]) 0 10)
159 <<"2 foobar" " bazbud" "3">>
165Pretty-printing structure
167A `tank` is one of three cases: a `%leaf` is simply a string (a printed line);
168a `%palm` is list of `tank` delimited by the strings in `p`, with back-steps at
169new lines; and a `%rose` is a list of `tank` delimited by the strings in `p`
170without back-steps at new lines.
176 ++ tank $% [$leaf p=tape]
178 p=[p=tape q=tape r=tape s=tape]
182 p=[p=tape q=tape r=tape]
193 [%rose p=[p="" q="" r=""] q=~]
195 > (wash [0 80] >(bex 20) (bex 19)<) :: at 80 cols
196 <<"[1.048.576 524.288]">>
198 > (wash [0 15] >(bex 20) (bex 19)<) :: at 15 cols
199 <<"[ 1.048.576" " 524.288" "]">>
201 > [(bex 150) (bex 151)] :: at 80 cols
202 [ 1.427.247.692.705.959.881.058.285.969.449.495.136.382.746.624
203 2.854.495.385.411.919.762.116.571.938.898.990.272.765.493.248
206 > (wash [0 40] >(bex 150) (bex 151)<)
208 "[ \\/1.427.247.692.705.959.881.058.285.\\/"
209 " 969.449.495.136.382.746.624"
211 " \\/2.854.495.385.411.919.762.116.571.\\/"
212 " 938.898.990.272.765.493.248"
224One of Hoon's two string types, the other being `++cord`. A tape is a list of
245 >`(list @tD)`"foobar"
249 ~[102 111 111 98 97 114]
257The time component of a `date`: day, hour, minute, second and a list of `@ux`
263 ++ tarp [d=@ud h=@ud m=@ud s=@ud f=(list @ux)]
270 [d=0 h=0 m=0 s=0 f=~]
273 [d=106.751.991.821.625 h=22 m=58 s=10 f=~[0x44ff]]
275 > `tarp`(yell ~2014.6.6..21.09.15..0a16)
276 [d=106.751.991.820.172 h=21 m=9 s=15 f=~[0xa16]]
279 [d=20 h=0 m=0 s=0 f=~]
288A restricted text atom for Hoon constants. The only characters permitted are
289lowercase ASCII letters, `-`, and `0-9`, the latter two of which cannot be the
290first character. The syntax for `@tas` is the text itself, always preceded by
291`%`. The empty `@tas` has a
323A list of `cord`s. A `wain` is used instead of a single `cord` with `\n`.
345List of list of characters
347A list of `tape`s. `wall` is used instead of a single `tape` with `\n`.
360 > `wall`(wash [0 20] leaf+<(bex 256)>)
362 "\\/115.792.089.237.\\/"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list