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

52 lines
759 B
Markdown
Raw Normal View History

2015-02-18 06:03:21 +03:00
[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.