proc main = let a = @[1] var b: seq[int] shallowCopy b, a b[0] = 5 echo a echo b main()
Standard input is empty
@[5] @[5]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!