4 ms·
This repl snippet should show that you're not actually changing a data structure in place. Rather, you're creating a new data structure and changing an existing
by nonrecursive 13y ago
This repl snippet should show that you're not actually changing a data structure in place. Rather, you're creating a new data structure and changing an existing binding:
user=> (def a [1 2 3])
user=> (def b a)
user=> (def a ["a" "b" "c"])
user=> a
["a" "b" "c"]
user=> b
[1 2 3]