6 lines
90 B
Nim
6 lines
90 B
Nim
import sugar
|
|
|
|
proc addM[T](n: T): auto = (x: T) => x + n
|
|
|
|
let add3 = addM(3)
|
|
echo add3(7)
|