on master help sign in
Document :tray |? "barwut"
commit6db69d2659481e4c00406b7ad8dbd136839451a1 author~hoclun-rigsep <jim.amberger@gmail.com> dateSun 12 Feb 2017, 20:11 (10 years ago) parent9c2a951
1 file changed+42
docs/hoon/twig/bar-core/wut-tray.md+42
docs/hoon/twig/bar-core/wut-tray.mdnew file+42
@@ -0,0 +1,42 @@
1+---
2+navhome: /docs
3+sort: 9
4+
5+---
6+
7+# `:tray |? "barwut"`
8+
9+`{$tray p/seed}`: form a lead trap.
10+
11+## Expands to
12+
13+```
14+:lead :trap p
15+```
16+
17+```
18+^? |. p
19+```
20+
21+## Syntax
22+
23+Regular: *1-fixed*.
24+
25+## Discussion
26+
27+See this [discussion of the core variance model](../../../advanced).
28+
29+## Examples
30+
31+```
32+~zod:dojo> :per ~ :like :tray(%a) :trap(%a)
33+<1?pqz $~>
34+~zod:dojo> :per ~ :like :tray(%a) :trap(%b)
35+nest-fail
36+```
37+```
38+~zod:dojo> => ~ ^+ |?(%a) |.(%a)
39+<1?pqz $~>
40+~zod:dojo> => ~ ^+ |?(%a) |.(%b)
41+nest-fail
42+```