mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-19 12:51:51 +03:00
759 B
759 B
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.