Skip to content

Instantly share code, notes, and snippets.

@dom96
Created January 25, 2014 19:21
Show Gist options
  • Save dom96/508388bb5292d6e418d0 to your computer and use it in GitHub Desktop.
Save dom96/508388bb5292d6e418d0 to your computer and use it in GitHub Desktop.
proc test(x: proc (a, b: int): int) =
echo x(5, 5)
test(proc (a, b): auto = a + b)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment