Higher-order functions: Difference between revisions
→{{header|Nim}}: Passing parameters without a type declaration is deprecated, hinting the compiler with proc works
m (than -> then) |
(→{{header|Nim}}: Passing parameters without a type declaration is deprecated, hinting the compiler with proc works) |
||
Line 1,470:
=={{header|Nim}}==
<lang nim>proc first(fn: proc): auto =
return fn()
|