RosettaCodeData/Task/Deepcopy/R/deepcopy.r
2026-04-30 12:34:36 -04:00

5 lines
109 B
R

a <- list(matrix(1:4, 2, 2), women, list(month.abb, pi), exp)
b <- a
b[[3]][[2]][1] <- 3.2
print(a)
print(b)