Created
July 25, 2020 12:57
-
-
Save yakkomajuri/f895adb73d4987d5982c85281192b2eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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