Skip to content

Instantly share code, notes, and snippets.

@yakkomajuri
Created July 25, 2020 12:57
Show Gist options
  • Save yakkomajuri/f895adb73d4987d5982c85281192b2eb to your computer and use it in GitHub Desktop.
Save yakkomajuri/f895adb73d4987d5982c85281192b2eb to your computer and use it in GitHub Desktop.
proc sum(arr: openArray[int]): int =
for num in arr:
result += num
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment