Variadic function: Difference between revisions

Content deleted Content added
Tag: Reverted
Line 165:
// function using func(slice...) like this.
nums := []int{1, 2, 3, 4}
sum(nums...) // "The sum of [1 2 3 4 5] is 10"
}