urbit/pub/docs/dev/hoon/runes/ts/tstr.md
2015-11-07 22:24:22 +02:00

750 B

tistar, =*, %tstr

Alias

=* is a natural rune 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.