on 492ae2f help sign in
37 lines 593 B history raw
1### `++slat`
3Curried slaw
5Produces a `gate` that parses a `term` `txt` to an atom of the
6odor specified by `mod`.
8Accepts
9-------
11Produces
12--------
14`mod` is a term, an atom of odor `@tas`.
16`txt` is a span, an atom of odor `@ta`.
18Source
19------
21 ++ slat |=(mod/@tas |=(txt/@ta (slaw mod txt)))
23Examples
24--------
26 ~zod/try=> `(unit @p)`((slat %p) '~pillyt')
27 [~ ~pillyt]
28 ~zod/try=> `(unit @ux)`((slat %ux) '0x12')
29 [~ 0x12]
30 ~zod/try=> `(unit @if)`((slat %if) '.127.0.0.1')
31 [~ .127.0.0.1]
32 ~zod/try=> `(unit @ta)`((slat %ta) '~.asd_a')
33 [~ ~.asd_a
37***