sequtils related changes

This commit is contained in:
Peter Mora 2015-10-05 22:41:54 +02:00
commit 75097e2981
11 changed files with 211 additions and 88 deletions

View file

@ -0,0 +1,7 @@
import sequtils
var x = @[1, 2, 3]
x.apply(proc(x: var int) = x = x+10)
x.apply(proc(x: int): int = x+100)
x.applyIt(it+5000)
doAssert x == @[5111, 5112, 5113]