Created
April 22, 2019 12:24
-
-
Save EJSohn/da2b8fd31bfe4117d19913966adc677e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| func sumSlice(slice []int) int { | |
| tot := 0 | |
| for _, val := range slice { | |
| tot += val | |
| } | |
| return tot | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment