Open khchen opened 2 years ago
Example:
l1 = [1, 2, 3] l2 = l1 l3 = List(l1) l1[0] = 4 print(l1); print(l2); print(l3) m1 = {1: 1, 2: 2, 3: 3} m2 = m1 m3 = Map(m1) m1[1] = 4 print(m1); print(m2); print(m3) print(List(3))
Output:
[4, 2, 3] [4, 2, 3] [1, 2, 3] {2:2, 1:4, 3:3} {2:2, 1:4, 3:3} {2:2, 1:1, 3:3} [null, null, null]
Example:
Output: