urbit/pub/docs/dev/hoon/runes/ts/tsdt.md

56 lines
716 B
Markdown
Raw Normal View History

tisdot, `=.`, %tsdt
2015-02-18 06:03:21 +03:00
============================
Single change subject
2015-11-07 21:49:34 +03:00
`=.` is a synthetic rune that produces `r` with `p` in the subject set
2015-02-18 06:03:21 +03:00
to `q`.
Produces
--------
Twig: `[%tsdt p=wing q=twig r=twig]`
Sample
------
`p` is a [`wing`](). `q` and `r` are [`twig`]()s.
Tall form
---------
Kingside:
=. p
q
r
Queenside:
=. p q
r
Wide form
---------
=.(p q r)
Irregular form
--------------
None
Examples
--------
~zod/try=> =+ a=[b=1 c=2]
=. b.a 3
a
[b=3 c=2]
~zod/try=> =+ a=[b=1 c=2]
=.(b.a 3 a)
[b=3 c=2]
Here we see the tall and wide forms of `=.` used to manipulate our
simple subject `a=[b=1 c=2]`.