on master help sign in
Update 4a

Arranged, formatted, and updated. Some were previously marked as being prefix operations when they were the opposite, and vice versa

commita2a46c8df6e864d44ea325db0b602a5e16bcb471 authorrmariani <robert@tlon.io> dateMon 6 Aug 2018, 11:22 (8 years ago) parent3a197af
1 file changed+101−113
docs/hoon/library/4a.md+101−113
docs/hoon/library/4a.md+101−113
@@ -6,206 +6,194 @@ navhome: /docs/
66# 4a: exotic bases
77### `++po`
88
9− ++ po
10− ~/ %po
11− =+ :- ^= sis :: prefix syllables
12− 'dozmarbinwansamlitsighidfidlissogdirwacsabwissib\
13− /rigsoldopmodfoglidhopdardorlorhodfolrintogsilmir\
14− /holpaslacrovlivdalsatlibtabhanticpidtorbolfosdot\
15− /losdilforpilramtirwintadbicdifrocwidbisdasmidlop\
16− /rilnardapmolsanlocnovsitnidtipsicropwitnatpanmin\
17− /ritpodmottamtolsavposnapnopsomfinfonbanporworsip\
18− /ronnorbotwicsocwatdolmagpicdavbidbaltimtasmallig\
19− /sivtagpadsaldivdactansidfabtarmonranniswolmispal\
20− /lasdismaprabtobrollatlonnodnavfignomnibpagsopral\
21− /bilhaddocridmocpacravripfaltodtiltinhapmicfanpat\
22− /taclabmogsimsonpinlomrictapfirhasbosbatpochactid\
23− /havsaplindibhosdabbitbarracparloddosbortochilmac\
24− /tomdigfilfasmithobharmighinradmashalraglagfadtop\
25− /mophabnilnosmilfopfamdatnoldinhatnacrisfotribhoc\
26− /nimlarfitwalrapsarnalmoslandondanladdovrivbacpol\
27− /laptalpitnambonrostonfodponsovnocsorlavmatmipfap'
28− ^= dex :: suffix syllables
29− 'zodnecbudwessevpersutletfulpensytdurwepserwylsun\
30− /rypsyxdyrnuphebpeglupdepdysputlughecryttyvsydnex\
31− /lunmeplutseppesdelsulpedtemledtulmetwenbynhexfeb\
32− /pyldulhetmevruttylwydtepbesdexsefwycburderneppur\
33− /rysrebdennutsubpetrulsynregtydsupsemwynrecmegnet\
34− /secmulnymtevwebsummutnyxrextebfushepbenmuswyxsym\
35− /selrucdecwexsyrwetdylmynmesdetbetbeltuxtugmyrpel\
36− /syptermebsetdutdegtexsurfeltudnuxruxrenwytnubmed\
37− /lytdusnebrumtynseglyxpunresredfunrevrefmectedrus\
38− /bexlebduxrynnumpyxrygryxfeptyrtustyclegnemfermer\
39− /tenlusnussyltecmexpubrymtucfyllepdebbermughuttun\
40− /bylsudpemdevlurdefbusbeprunmelpexdytbyttyplevmyl\
41− /wedducfurfexnulluclennerlexrupnedlecrydlydfenwel\
42− /nydhusrelrudneshesfetdesretdunlernyrsebhulryllud\
43− /remlysfynwerrycsugnysnyllyndyndemluxfedsedbecmun\
44− /lyrtesmudnytbyrsenwegfyrmurtelreptegpecnelnevfes'
45− |%
46−
47−Provides the phonetic syllables and name generators for the Urbit naming
48−system. The two faces, `sis` and `dex` are available to the arms
49−contained in this section.
50−
51−
52−------------------------------------------------------------------------
9+Phonetic base
10+
11+Container core for providing phonetic syllables and name generators for the
12+Urbit naming system. The two faces, `sis` and `dex`, are available to the
13+contained arms.
14+
15+#### Source
16+
17+ ~/ %po
18+ =+ :- ^= sis :: prefix syllables
19+ 'dozmarbinwansamlitsighidfidlissogdirwacsabwissib\
20+ /rigsoldopmodfoglidhopdardorlorhodfolrintogsilmir\
21+ /holpaslacrovlivdalsatlibtabhanticpidtorbolfosdot\
22+ /losdilforpilramtirwintadbicdifrocwidbisdasmidlop\
23+ /rilnardapmolsanlocnovsitnidtipsicropwitnatpanmin\
24+ /ritpodmottamtolsavposnapnopsomfinfonbanmorworsip\
25+ /ronnorbotwicsocwatdolmagpicdavbidbaltimtasmallig\
26+ /sivtagpadsaldivdactansidfabtarmonranniswolmispal\
27+ /lasdismaprabtobrollatlonnodnavfignomnibpagsopral\
28+ /bilhaddocridmocpacravripfaltodtiltinhapmicfanpat\
29+ /taclabmogsimsonpinlomrictapfirhasbosbatpochactid\
30+ /havsaplindibhosdabbitbarracparloddosbortochilmac\
31+ /tomdigfilfasmithobharmighinradmashalraglagfadtop\
32+ /mophabnilnosmilfopfamdatnoldinhatnacrisfotribhoc\
33+ /nimlarfitwalrapsarnalmoslandondanladdovrivbacpol\
34+ /laptalpitnambonrostonfodponsovnocsorlavmatmipfip'
35+ ^= dex :: suffix syllables
36+ 'zodnecbudwessevpersutletfulpensytdurwepserwylsun\
37+ /rypsyxdyrnuphebpeglupdepdysputlughecryttyvsydnex\
38+ /lunmeplutseppesdelsulpedtemledtulmetwenbynhexfeb\
39+ /pyldulhetmevruttylwydtepbesdexsefwycburderneppur\
40+ /rysrebdennutsubpetrulsynregtydsupsemwynrecmegnet\
41+ /secmulnymtevwebsummutnyxrextebfushepbenmuswyxsym\
42+ /selrucdecwexsyrwetdylmynmesdetbetbeltuxtugmyrpel\
43+ /syptermebsetdutdegtexsurfeltudnuxruxrenwytnubmed\
44+ /lytdusnebrumtynseglyxpunresredfunrevrefmectedrus\
45+ /bexlebduxrynnumpyxrygryxfeptyrtustyclegnemfermer\
46+ /tenlusnussyltecmexpubrymtucfyllepdebbermughuttun\
47+ /bylsudpemdevlurdefbusbeprunmelpexdytbyttyplevmyl\
48+ /wedducfurfexnulluclennerlexrupnedlecrydlydfenwel\
49+ /nydhusrelrudneshesfetdesretdunlernyrsebhulryllud\
50+ /remlysfynwerrycsugnysnyllyndyndemluxfedsedbecmun\
51+ /lyrtesmudnytbyrsenwegfyrmurtelreptegpecnelnevfes'
52+ |%
5353
54+
55+***
5456### `++ind`
5557
56−Parse prefix
58+Parse suffix
5759
5860Produces the byte of the right-hand syllable `a`.
5961
60−Accepts
61−-------
62+#### Accepts
6263
6364`a` is an atom.
6465
65−Produces
66−--------
66+#### Produces
6767
68−A `++unit` of an atom.
68+A `unit`.
6969
70−Source
71−------
70+#### Source
7271
73− ++ ind ~/ %ind :: parse suffix
74− |= a/@tas
72+ ++ ind ~/ %ind
73+ |= a=@tas
7574 =+ b=0
7675 |- ^- (unit @)
7776 ?:(=(256 b) ~ ?:(=(a (tod b)) [~ b] $(b +(b))))
78−
79−Examples
80−--------
77+#### Examples
8178
8279 > (ind:po 'zod')
83− [~ 0]
80+ [~ u=0]
81+
8482 > (ind:po 'zam')
8583 ~
86− > (ind:po 'del')
87− [~ 37]
8884
89−------------------------------------------------------------------------
85+ > (ind:po 'del')
86+ [~ u=37]
9087
88+***
9189### `++ins`
9290
93−Parse suffix
91+Parse prefix
9492
95−Produces the byte of the left-hand phonetic syllable `b`.
93+Produces the byte of the left-hand phonetic syllable `a`.
9694
97−Accepts
98−-------
95+#### Accepts
9996
10097`a` is an atom.
10198
102−Produces
103−--------
104−A `++unit` of an atom.
99+#### Produces
100+
101+A `unit` of an atom.
105102
106−Source
107−------
103+#### Source
108104
109− ++ ins ~/ %ins :: parse prefix
110− |= a/@tas
105+ ++ ins ~/ %ins
106+ |= a=@tas
111107 =+ b=0
112108 |- ^- (unit @)
113109 ?:(=(256 b) ~ ?:(=(a (tos b)) [~ b] $(b +(b))))
114110
115−
116−Examples
117−--------
111+#### Examples
118112
119113 > (ins:po 'mar')
120− [~ 1]
114+ [~ u=1]
115+
121116 > (ins:po 'son')
122− [~ 164]
117+ [~ u=164]
118+
123119 > (ins:po 'pit')
124− [~ 242]
120+ [~ u=242]
121+
125122 > (ins:po 'pok')
126123 ~
127124
128−------------------------------------------------------------------------
129−
125+***
130126### `++tod`
131127
132−Fetch prefix
128+Fetch suffix
133129
134−Produces the phonetic prefix syllable from index `a` within `dex` as an
135−atom.
130+Produces the phonetic suffix syllable from index `a` within `dex` as an atom.
136131
137−Accepts
138−-------
132+#### Accepts
139133
140134`a` is an atom
141135
142−Produces
143−--------
136+#### Produces
144137
145138An atom.
146139
140+#### Source
147141
148−Source
149−------
150−
151− ++ tod ~/ %tod :: fetch suffix
152− |=(a/@ ?>((lth a 256) (cut 3 [(mul 3 a) 3] dex)))
153−
154−
142+ ++ tod ~/ %tod
143+ |=(a=@ ?>((lth a 256) (cut 3 [(mul 3 a) 3] dex)))
155144
156−Examples
157−--------
145+#### Examples
158146
159147 > `@t`(tod:po 1)
160148 'nec'
149+
161150 > `@t`(tod:po 98)
162151 'dec'
152+
163153 > `@t`(tod:po 0)
164154 'zod'
155+
165156 > `@t`(tod:po 150)
166157 'ryg'
158+
167159 > `@t`(tod:po 255)
168160 'fes'
161+
169162 > `@t`(tod:po 256)
170163 ! exit
171164
172−------------------------------------------------------------------------
173−
165+***
174166### `++tos`
175167
176−Fetch suffix
168+Fetch prefix
177169
178−Produces the phonetic prefix syllable from index `a` within `sis` as an
179−atom.
170+Produces the phonetic prefix syllable from index `a` within `sis` as an atom.
180171
181−Accepts
182−-------
172+#### Accepts
183173
184174`a` is an atom.
185175
186−Produces
187−--------
176+#### Produces
188177
189178An atom.
190179
191−Source
192−------
180+#### Source
193181
194− ++ tos ~/ %tos :: fetch suffix
195− |=(a/@ ?>((lth a 256) (cut 3 [(mul 3 a) 3] sis)))
182+ ++ tos ~/ %tos
183+ |=(a=@ ?>((lth a 256) (cut 3 [(mul 3 a) 3] sis)))
196184
197−Examples
198−--------
185+#### Examples
199186
200187 > `@t`(tos:po 0)
201188 'doz'
189+
202190 > `@t`(tos:po 120)
203191 'fab'
192+
204193 > `@t`(tos:po 43)
205194 'pid'
195+
206196 > `@t`(tos:po 253)
207197 'mat'
208198
209−------------------------------------------------------------------------
210−
211199***