This commit is contained in:
Araq
2012-10-13 01:59:20 +02:00
parent 2193460ea6
commit ffcbe19cd8
3 changed files with 13 additions and 7 deletions

View File

@@ -0,0 +1,6 @@
proc doSomething(v: Int, x: proc(v:Int):Int): Int = return x(v)
proc doSomething(v: Int, x: proc(v:Int)) = x(v)
echo doSomething(10, proc(v: Int): Int = return v div 2)