home
|
blog
|
recipes
|
mellifera
|
rss
println("hello 🐝"); let x = ["foo", {"bar": 123}, "baz"]; let y = x; # x is assigned to y by copy println($`x is {x}`); println($`y is {y}`); # updates to x and y do not affect each other, because they are separate values x[0] = "abc"; y[1]["bar"] = "xyz"; println($`x is now {x}`); println($`y is now {y}`); # Find more examples in the Mellifera project repository: # https://github.com/ashn-dot-dev/mellifera
Run