Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sum ¶
Receiving array of integers and returns those sum
Example ¶
sum := Sum([]int{1, 2, 3, 4})
fmt.Print(sum)
Output: 10
func SumAll ¶
Receiving multiple arrays of integers and returning a slice of sums for each array
Example ¶
sums := SumAll([]int{3, 4, 5}, []int{5, 6, 7})
fmt.Print(sums)
Output: [12 18]
func SumAllTails ¶
Example ¶
sumsTails := SumAllTails([]int{3, 4, 5}, []int{5, 6, 7})
fmt.Print(sumsTails)
Output: [9 13]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.