RosettaCodeData/Task/Call-an-object-method/Nim/call-an-object-method.nim

4 lines
38 B
Nim

var x = @[1, 2, 3]
add(x, 4)
x.add(5)