on master help sign in
Use new docs structure
b9c77f5Alec Brickner
hoon/reference/stdlib/1c.md+7−7
@@ -130,7 +130,7 @@ A `gate` is analogous to a function in other programming languages. We created
130this new jargon because other constructs in Urbit are "functions" in the
130this new jargon because other constructs in Urbit are "functions" in the
131mathematical sense. Any `gate` normalizes to an iron `gate`.
131mathematical sense. Any `gate` normalizes to an iron `gate`.
132
132
133−See also: [`++lift`](@/docs/reference/library/2a.md#lift), [`++cork`](@/docs/reference/library/2n.md#cork)
133+See also: [`++lift`](@/docs/hoon/reference/stdlib/2a.md#lift), [`++cork`](@/docs/hoon/reference/stdlib/2n.md#cork)
134
134
135---
135---
136### `++list`
136### `++list`
@@ -166,7 +166,7 @@ homogenous type.
166```
166```
167#### Discussion
167#### Discussion
168
168
169−See also: [`++turn`](@/docs/reference/library/2b.md#turn), [`++snag`](@/docs/reference/library/2b.md#snag)
169+See also: [`++turn`](@/docs/hoon/reference/stdlib/2b.md#turn), [`++snag`](@/docs/hoon/reference/stdlib/2b.md#snag)
170
170
171---
171---
172### `++lone`
172### `++lone`
@@ -229,9 +229,9 @@ A mold generator. Produces a tuple of two of the types passed in.
229---
229---
230### `++pole`
230### `++pole`
231
231
232−Faceless [`list`](@/docs/reference/library/1c.md#list)
232+Faceless [`list`](@/docs/hoon/reference/stdlib/1c.md#list)
233
233
234−A mold generator. A [`list`](@/docs/reference/library/1c.md#list) without the faces `i` and `t`.
234+A mold generator. A [`list`](@/docs/hoon/reference/stdlib/1c.md#list) without the faces `i` and `t`.
235
235
236#### Source
236#### Source
237
237
@@ -280,9 +280,9 @@ A mold generator. Produces a tuple of four of the types passed in.
280---
280---
281### `++quip`
281### `++quip`
282
282
283−Mold of pair of [`list`](@/docs/reference/library/1c.md#list) and type
283+Mold of pair of [`list`](@/docs/hoon/reference/stdlib/1c.md#list) and type
284
284
285−A mold generator. Produces a tuple of a [`list`](@/docs/reference/library/1c.md#list) of `a` and the mold of `b`.
285+A mold generator. Produces a tuple of a [`list`](@/docs/hoon/reference/stdlib/1c.md#list) of `a` and the mold of `b`.
286
286
287#### Source
287#### Source
288
288
@@ -416,6 +416,6 @@ type that was passed in.
416
416
417Using a `unit` allows you to specify something that may not be there.
417Using a `unit` allows you to specify something that may not be there.
418
418
419−See also: [`++bind`](@/docs/reference/library/2b.md#bind)
419+See also: [`++bind`](@/docs/hoon/reference/stdlib/2b.md#bind)
420
420
421---
421---
hoon/reference/stdlib/2a.md+46−46
@@ -6,20 +6,20 @@ template = "doc.html"
6
6
7### `++biff`
7### `++biff`
8
8
9−[`Unit`](@/docs/reference/library/1c.md#unit) as argument
9+[`Unit`](@/docs/hoon/reference/stdlib/1c.md#unit) as argument
10
10
11−Applies a function `b` that produces a [`unit`](@/docs/reference/library/1c.md#unit) to the unwrapped value of [`unit`](@/docs/reference/library/1c.md#unit)
11+Applies a function `b` that produces a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit) to the unwrapped value of [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit)
12`a` (`u.a`). If `a` is empty, `~` is produced.
12`a` (`u.a`). If `a` is empty, `~` is produced.
13
13
14#### Accepts
14#### Accepts
15
15
16−`a` is a [`unit`](@/docs/reference/library/1c.md#unit).
16+`a` is a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
17
17
18−`b` is a function that accepts a [`noun`](@/docs/glossary/noun.md) and produces a [`unit`](@/docs/reference/library/1c.md#unit).
18+`b` is a function that accepts a [`noun`](@/docs/glossary/noun.md) and produces a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
19
19
20#### Produces
20#### Produces
21
21
22−A [`unit`](@/docs/reference/library/1c.md#unit).
22+A [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
23
23
24#### Source
24#### Source
25
25
@@ -44,21 +44,21 @@ A [`unit`](@/docs/reference/library/1c.md#unit).
44---
44---
45### `++bind`
45### `++bind`
46
46
47−Non-unit function to [`unit`](@/docs/reference/library/1c.md#unit), producing [`unit`](@/docs/reference/library/1c.md#unit)
47+Non-unit function to [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit), producing [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit)
48
48
49−Applies a function `b` to the value (`u.a`) of a [`unit`](@/docs/reference/library/1c.md#unit) `a`, producing
49+Applies a function `b` to the value (`u.a`) of a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit) `a`, producing
50−a [`unit`](@/docs/reference/library/1c.md#unit). Used when you want a function that does not accept or produce a
50+a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit). Used when you want a function that does not accept or produce a
51−[`unit`](@/docs/reference/library/1c.md#unit) to both accept and produce a [`unit`](@/docs/reference/library/1c.md#unit).
51+[`unit`](@/docs/hoon/reference/stdlib/1c.md#unit) to both accept and produce a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
52
52
53#### Accepts
53#### Accepts
54
54
55−`a` is a [`unit`](@/docs/reference/library/1c.md#unit).
55+`a` is a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
56
56
57`b` is a function.
57`b` is a function.
58
58
59#### Produces
59#### Produces
60
60
61−A [`unit`](@/docs/reference/library/1c.md#unit).
61+A [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
62
62
63#### Source
63#### Source
64
64
@@ -87,18 +87,18 @@ A [`unit`](@/docs/reference/library/1c.md#unit).
87
87
88Replace null
88Replace null
89
89
90−Replaces an empty [`unit`](@/docs/reference/library/1c.md#unit) `b` with the product of a called [`trap`](@/docs/glossary/trap.md)
90+Replaces an empty [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit) `b` with the product of a called [`trap`](@/docs/glossary/trap.md)
91−`a`. If the [`unit`](@/docs/reference/library/1c.md#unit) is not empty, then the original [`unit`](@/docs/reference/library/1c.md#unit) is produced.
91+`a`. If the [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit) is not empty, then the original [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit) is produced.
92
92
93#### Accepts
93#### Accepts
94
94
95`a` is a [`trap`](@/docs/glossary/trap.md).
95`a` is a [`trap`](@/docs/glossary/trap.md).
96
96
97−`b` is a [`unit`](@/docs/reference/library/1c.md#unit).
97+`b` is a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
98
98
99#### Produces
99#### Produces
100
100
101−Either the product of `a` or the value inside of [`unit`](@/docs/reference/library/1c.md#unit) `b`.
101+Either the product of `a` or the value inside of [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit) `b`.
102
102
103#### Source
103#### Source
104
104
@@ -126,21 +126,21 @@ Either the product of `a` or the value inside of [`unit`](@/docs/reference/libra
126---
126---
127### `++both`
127### `++both`
128
128
129−Group [`unit`](@/docs/reference/library/1c.md#unit) values into pair
129+Group [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit) values into pair
130
130
131Produces `~` if either `a` or `b` are empty. Otherwise, produces a
131Produces `~` if either `a` or `b` are empty. Otherwise, produces a
132−[`unit`](@/docs/reference/library/1c.md#unit) whose value is a cell of the values of two input [`units`](@/docs/reference/library/1c.md#unit) `a` and
132+[`unit`](@/docs/hoon/reference/stdlib/1c.md#unit) whose value is a cell of the values of two input [`units`](@/docs/hoon/reference/stdlib/1c.md#unit) `a` and
133`b`.
133`b`.
134
134
135#### Accepts
135#### Accepts
136
136
137−`a` is a [`unit`](@/docs/reference/library/1c.md#unit).
137+`a` is a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
138
138
139−`b` is a [`unit`](@/docs/reference/library/1c.md#unit).
139+`b` is a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
140
140
141#### Produces
141#### Produces
142
142
143−A [`unit`](@/docs/reference/library/1c.md#unit) of the two initial values.
143+A [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit) of the two initial values.
144
144
145#### Source
145#### Source
146
146
@@ -165,22 +165,22 @@ A [`unit`](@/docs/reference/library/1c.md#unit) of the two initial values.
165---
165---
166### `++clap`
166### `++clap`
167
167
168−Apply function to two [`units`](@/docs/reference/library/1c.md#unit)
168+Apply function to two [`units`](@/docs/hoon/reference/stdlib/1c.md#unit)
169
169
170Applies a binary function `c`--which does not usually accept or produce a
170Applies a binary function `c`--which does not usually accept or produce a
171−[`unit`](@/docs/reference/library/1c.md#unit)-- to the values of two [`units`](@/docs/reference/library/1c.md#unit), `a` and `b`, producing a [`unit`](@/docs/reference/library/1c.md#unit).
171+[`unit`](@/docs/hoon/reference/stdlib/1c.md#unit)-- to the values of two [`units`](@/docs/hoon/reference/stdlib/1c.md#unit), `a` and `b`, producing a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
172
172
173#### Accepts
173#### Accepts
174
174
175−`a` is a [`unit`](@/docs/reference/library/1c.md#unit).
175+`a` is a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
176
176
177−`b` is a [`unit`](@/docs/reference/library/1c.md#unit).
177+`b` is a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
178
178
179`c` is a function that performs a binary operation.
179`c` is a function that performs a binary operation.
180
180
181#### Produces
181#### Produces
182
182
183−A [`unit`](@/docs/reference/library/1c.md#unit).
183+A [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
184
184
185#### Source
185#### Source
186
186
@@ -212,13 +212,13 @@ A [`unit`](@/docs/reference/library/1c.md#unit).
212---
212---
213### `++drop`
213### `++drop`
214
214
215−[`Unit`](@/docs/reference/library/1c.md#unit) to list
215+[`Unit`](@/docs/hoon/reference/stdlib/1c.md#unit) to list
216
216
217−Makes a [`++list`](@/docs/reference/library/1c.md#list) of the unwrapped value (`u.a`) of a [`unit`](@/docs/reference/library/1c.md#unit) `a`.
217+Makes a [`++list`](@/docs/hoon/reference/stdlib/1c.md#list) of the unwrapped value (`u.a`) of a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit) `a`.
218
218
219#### Accepts
219#### Accepts
220
220
221−`a` is a [`unit`](@/docs/reference/library/1c.md#unit).
221+`a` is a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
222
222
223#### Produces
223#### Produces
224
224
@@ -249,19 +249,19 @@ A list.
249---
249---
250### `++fall`
250### `++fall`
251
251
252−Give [`unit`](@/docs/reference/library/1c.md#unit) a default value
252+Give [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit) a default value
253
253
254−Produces a default value `b` for a [`unit`](@/docs/reference/library/1c.md#unit) `a` in cases where `a` is null.
254+Produces a default value `b` for a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit) `a` in cases where `a` is null.
255
255
256#### Accepts
256#### Accepts
257
257
258−`a` is a [`unit`](@/docs/reference/library/1c.md#unit).
258+`a` is a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
259
259
260`b` is a [`noun`](@/docs/glossary/noun.md) that's used as the default value.
260`b` is a [`noun`](@/docs/glossary/noun.md) that's used as the default value.
261
261
262#### Produces
262#### Produces
263
263
264−Either a [`noun`](@/docs/glossary/noun.md) `b` or the unwrapped value of [`unit`](@/docs/reference/library/1c.md#unit) `a`.
264+Either a [`noun`](@/docs/glossary/noun.md) `b` or the unwrapped value of [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit) `a`.
265
265
266#### Source
266#### Source
267
267
@@ -285,19 +285,19 @@ Either a [`noun`](@/docs/glossary/noun.md) `b` or the unwrapped value of [`unit`
285
285
286Curried bind
286Curried bind
287
287
288−Accepts a `++gate` `a` and produces a function that accepts [`unit`](@/docs/reference/library/1c.md#unit)
288+Accepts a `++gate` `a` and produces a function that accepts [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit)
289`b` to which it applies `a`. Used when you want a function that does not accept
289`b` to which it applies `a`. Used when you want a function that does not accept
290−or produce a [`unit`](@/docs/reference/library/1c.md#unit) to both accept and produce a [`unit`](@/docs/reference/library/1c.md#unit).
290+or produce a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit) to both accept and produce a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
291
291
292#### Accepts
292#### Accepts
293
293
294`a` is a gate.
294`a` is a gate.
295
295
296−`b` is a [`unit`](@/docs/reference/library/1c.md#unit).
296+`b` is a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
297
297
298#### Produces
298#### Produces
299
299
300−A [`unit`](@/docs/reference/library/1c.md#unit).
300+A [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
301
301
302#### Source
302#### Source
303
303
@@ -324,7 +324,7 @@ A [`unit`](@/docs/reference/library/1c.md#unit).
324
324
325Choose
325Choose
326
326
327−Accepts two [`units`](@/docs/reference/library/1c.md#unit) `a` and `b` whose values are expected to be
327+Accepts two [`units`](@/docs/hoon/reference/stdlib/1c.md#unit) `a` and `b` whose values are expected to be
328equivalent. If either is empty, then the value of the other is produced.
328equivalent. If either is empty, then the value of the other is produced.
329If neither are empty, it asserts that both values are the same and
329If neither are empty, it asserts that both values are the same and
330produces that value. If the assertion fails, `++mate` crashes with
330produces that value. If the assertion fails, `++mate` crashes with
@@ -332,13 +332,13 @@ produces that value. If the assertion fails, `++mate` crashes with
332
332
333#### Accepts
333#### Accepts
334
334
335−`a` is a [`unit`](@/docs/reference/library/1c.md#unit).
335+`a` is a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
336
336
337−`b` is a [`unit`](@/docs/reference/library/1c.md#unit).
337+`b` is a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
338
338
339#### Produces
339#### Produces
340
340
341−A [`unit`](@/docs/reference/library/1c.md#unit) or crash.
341+A [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit) or crash.
342
342
343#### Source
343#### Source
344
344
@@ -374,13 +374,13 @@ A [`unit`](@/docs/reference/library/1c.md#unit) or crash.
374---
374---
375### `++need`
375### `++need`
376
376
377−Unwrap [`unit`](@/docs/reference/library/1c.md#unit)
377+Unwrap [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit)
378
378
379−Retrieve the value from a [`unit`](@/docs/reference/library/1c.md#unit) and crash if the [`unit`](@/docs/reference/library/1c.md#unit) is null.
379+Retrieve the value from a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit) and crash if the [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit) is null.
380
380
381#### Accepts
381#### Accepts
382
382
383−`a` is a [`unit`](@/docs/reference/library/1c.md#unit).
383+`a` is a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
384
384
385#### Produces
385#### Produces
386
386
@@ -415,9 +415,9 @@ Either the unwrapped value of `a` (`u.a`), or crash.
415---
415---
416### `++some`
416### `++some`
417
417
418−Wrap value in a [`unit`](@/docs/reference/library/1c.md#unit)
418+Wrap value in a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit)
419
419
420−Takes any [`noun`](@/docs/glossary/noun.md) `a` and produces a [`unit`](@/docs/reference/library/1c.md#unit) with the value set to `a`.
420+Takes any [`noun`](@/docs/glossary/noun.md) `a` and produces a [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit) with the value set to `a`.
421
421
422#### Accepts
422#### Accepts
423
423
@@ -425,7 +425,7 @@ Takes any [`noun`](@/docs/glossary/noun.md) `a` and produces a [`unit`](@/docs/r
425
425
426#### Produces
426#### Produces
427
427
428−A [`unit`](@/docs/reference/library/1c.md#unit).
428+A [`unit`](@/docs/hoon/reference/stdlib/1c.md#unit).
429
429
430#### Source
430#### Source
431
431