blob: 2b7464216a221424d20b170fbabec2bce6bb3eeb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
discard """
output: '''true'''
"""
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)
echo x == @[5111, 5112, 5113]
|