2title = "2q: Molds and Mold-Builders"
11A single character. Aura `@tD` designates a single UTF-8 byte. All parsers
12consume `tape`s, which are lists of `char`.
36One of Hoon's two string types (the other being `tape`). A cord is an
66Aura `@t` designates a Unicode atom, little-endian: the first character
67in the text is the least-significant byte.
69[`trip`](/docs/hoon/reference/stdlib/4b) converts from `cord` to `tape`, and [`crip`](/docs/hoon/reference/stdlib/4b) converts
79A boolean designating AD or BC, a year atom, a month atom, and a `tarp`,
80which is a day atom and a time.
85 ++ date [[a=? y=@ud] m=@ud t=tarp]
92 [[a=%.y y=0] m=0 t=[d=0 h=0 m=0 s=0 f=~]]
94 > `date`(yore ~2014.6.6..21.09.15..0a16)
95 [[a=%.y y=2.014] m=6 t=[d=6 h=21 m=9 s=15 f=~[0xa16]]]
98 ~2018.5.25..17.55.15..9ad8
104See also: [`year`](/docs/hoon/reference/stdlib/3c), [`yore`](/docs/hoon/reference/stdlib/3c)
111An atom type that only permits ASCII characters.
133Generic print structure
135A list of `tank`s. It's for printing types and bottom-up printing of stack
150 > (~(win re [%palm ["1" "2" "3" "4"] [%leaf "foobar"] [%leaf "bazbud"] [%leaf "zzzzzzqaaa"] ~]) 0 50)
151 <<"23foobar1bazbud1zzzzzzqaaa4">>
153 > (~(win re [%palm ["1" "2" "3" "4"] [%leaf "foobar"] [%leaf "bazbud"] [%leaf "zzzzzzqaaa"] ~]) 0 10)
154 <<"2 foobar" " bazbud" "zzzzzzqaaa">>
156 > (~(win re [%rose ["1" "2" "3"] [%leaf "foobar"] [%leaf "bazbud"] ~]) 0 20)
157 <<"2foobar1bazbud3">>
159 > (~(win re [%rose ["1" "2" "3"] [%leaf "foobar"] [%leaf "bazbud"] ~]) 0 10)
160 <<"2 foobar" " bazbud" "3">>
166Pretty-printing structure
168A `tank` is one of three cases: a `%leaf` is simply a string (a printed line);
169a `%palm` is list of `tank` delimited by the strings in `p`, with back-steps at
170new lines; and a `%rose` is a list of `tank` delimited by the strings in `p`
171without back-steps at new lines.
177 ++ tank $% [$leaf p=tape]
179 p=[p=tape q=tape r=tape s=tape]
183 p=[p=tape q=tape r=tape]
194 [%rose p=[p="" q="" r=""] q=~]
196 > (wash [0 80] >(bex 20) (bex 19)<) :: at 80 cols
197 <<"[1.048.576 524.288]">>
199 > (wash [0 15] >(bex 20) (bex 19)<) :: at 15 cols
200 <<"[ 1.048.576" " 524.288" "]">>
202 > [(bex 150) (bex 151)] :: at 80 cols
203 [ 1.427.247.692.705.959.881.058.285.969.449.495.136.382.746.624
204 2.854.495.385.411.919.762.116.571.938.898.990.272.765.493.248
207 > (wash [0 40] >(bex 150) (bex 151)<)
209 "[ \\/1.427.247.692.705.959.881.058.285.\\/"
210 " 969.449.495.136.382.746.624"
212 " \\/2.854.495.385.411.919.762.116.571.\\/"
213 " 938.898.990.272.765.493.248"
225One of Hoon's two string types, the other being `++cord`. A tape is a list of
246 >`(list @tD)`"foobar"
250 ~[102 111 111 98 97 114]
258The time component of a `date`: day, hour, minute, second and a list of `@ux`
264 ++ tarp [d=@ud h=@ud m=@ud s=@ud f=(list @ux)]
271 [d=0 h=0 m=0 s=0 f=~]
274 [d=106.751.991.821.625 h=22 m=58 s=10 f=~[0x44ff]]
276 > `tarp`(yell ~2014.6.6..21.09.15..0a16)
277 [d=106.751.991.820.172 h=21 m=9 s=15 f=~[0xa16]]
280 [d=20 h=0 m=0 s=0 f=~]
289A restricted text atom for Hoon constants. The only characters permitted are
290lowercase ASCII letters, `-`, and `0-9`, the latter two of which cannot be the
291first character. The syntax for `@tas` is the text itself, always preceded by
292`%`. The empty `@tas` has a
324A list of `cord`s. A `wain` is used instead of a single `cord` with `\n`.
346List of list of characters
348A list of `tape`s. `wall` is used instead of a single `tape` with `\n`.
361 > `wall`(wash [0 20] leaf+<(bex 256)>)
363 "\\/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