package main
import "fmt"
func my_func( args ...int) int {
sum := 0
for _,v := range args {
sum = sum + v
}
return sum;
}
func main() {
arr := []int{2,4}
sum := my_func(arr...)
fmt.Println("Sum is ", sum)
}
cGFja2FnZSBtYWluCmltcG9ydCAiZm10IgoKZnVuYyBteV9mdW5jKCBhcmdzIC4uLmludCkgaW50IHsKICAgc3VtIDo9IDAKICAgZm9yIF8sdiA6PSByYW5nZSBhcmdzIHsKICAgICAgc3VtID0gc3VtICsgdgogICB9CgogICByZXR1cm4gc3VtOwp9CgpmdW5jIG1haW4oKSB7CiAgICBhcnIgOj0gW11pbnR7Miw0fQogICAgc3VtIDo9IG15X2Z1bmMoYXJyLi4uKQogICAgZm10LlByaW50bG4oIlN1bSBpcyAiLCBzdW0pCn0K