Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
15
Task/Deepcopy/Sidef/deepcopy.sidef
Normal file
15
Task/Deepcopy/Sidef/deepcopy.sidef
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
var src = Hash(foo => 0, bar => [0,1])
|
||||
|
||||
# Add a cyclic reference
|
||||
src{:baz} = src
|
||||
|
||||
# Make a deep clone
|
||||
var dst = src.dclone
|
||||
|
||||
# The address of src
|
||||
say src.object_id
|
||||
say src{:baz}.object_id
|
||||
|
||||
# The address of dst
|
||||
say dst.object_id
|
||||
say dst{:baz}.object_id
|
||||
Loading…
Add table
Add a link
Reference in a new issue