on master help sign in
Add /^ docs
commitf84edb77dddd8d1aabf03f75ede618fb84917254 authorTed Blackman <ted@tlon.io> dateTue 5 Sep 2017, 17:34 (9 years ago) parent1f14f08
1 file changed+17
docs/arvo/internals/ford/runes.md+17
docs/arvo/internals/ford/runes.md+17
@@ -182,3 +182,20 @@ Example:
182182vanes
183183```
184184produces: `[%ames %behn %clay %dill %eyre %ford %gall ~]`.
185+
186+### `/^` cast
187+
188+`/^` takes a mold and a horn, and casts the result of the horn to the mold.
189+
190+Example:
191+```
192+/= liz /^ (list @) :: cast to real list
193+ /~ ~[1 2 3] :: no 'i' or 't' faces
194+::
195+?< ?=($~ liz) :: prevent find-fork
196+i.liz
197+```
198+
199+produces: `1`
200+
201+Without the cast, we wouldn't be able to access the 'i' face of the list.