RosettaCodeData/Task/Deepcopy/EasyLang/deepcopy.easy

11 lines
278 B
Text
Raw Permalink Normal View History

2024-10-16 18:07:41 -07:00
# There are no more complex data structures than arrays.
# Arrays are always copied deeply.
# If you need something faster, you can swap arrays or
# pass them to procedures by reference.
#
a$[] = [ "apple" "banana" "orange" ]
b$[] = a$[]
b$[1] = "apricot"
print a$[]
print b$[]