on 492ae2f help sign in
24 lines 669 B history raw
1# `:aka`, `=*`, "tistar" `{$aka p/term q/twig r/twig}`
3Alias.
5Makes `p` an alias of value `q`, producing a `%bull`, the alias type. Useful when you don't want to write
6out a long address multiple times, for example `p.s.+.variable`, which translates to `p` within `s` within the tail of `variable`.
8Examples:
10 ~zod/try=>
11 =+ a=1
12 =* b a
13 [a b]
14 [1 1]
15 ~zod/try=>
16 =+ a=1
17 =* b a
18 =. a 2
19 [a b]
20 [2 2]
22Here we see two simple examples of `=*`, both aliasing `b` to the value
23of `a`. In our second case you can see that even when we change the
24value of `a`, `b` continues to point to that value.