urbit/pub/doc/hoon/runes/ts/tstr.md

52 lines
750 B
Markdown

tistar, `=*`, %tstr
============================
Alias
`=*` is a natural hoon that creates a `%bull`, or alias, type.
Produces
--------
Twig: `[%tstr p=term q=wing r=twig]`
Sample
------
`p` is a [`term`](). `q` is a [`++wing`](). `r` is a [twig]().
Tall form
---------
=* p q
r
Wide form
---------
=*(p q r)
Irregular form
--------------
None
Examples
--------
~zod/try=>
=+ a=1
=* b a
[a b]
[1 1]
~zod/try=>
=+ a=1
=* b a
=. a 2
[a b]
[2 2]
Here we see two simple examples of `=*`, both aliasing `b` to the value
of `a`. In our second case you can see that even when we change the
value of `a`, `b` continues to point to that value.