urbit/base/pub/doc/hoon/runes/ts/tstr.md
2015-04-29 18:48:45 -04:00

52 lines
759 B
Markdown

[tistar, `=*`, %tstr](#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.