|
|
|
|
|
by nnm
1372 days ago
|
|
Comment on the functional programming and mutation of data. I learnt R before learnt python. In R y = c(1, 2, 3) x = y # now x is a copy of y I was surprised that in python y = [1, 2, 3] x = y # now x is y! What, why? In R, I am used to the fact everything is an expression: a = if (x > y) { 0 } else { 1 } |
|
https://stackoverflow.com/questions/15759117/what-exactly-is...