publish variadic functions. also, spelling

This commit is contained in:
Mark McGranaghan
2012-10-17 18:41:49 -07:00
parent 855fde241c
commit 22f6542915
7 changed files with 44 additions and 39 deletions

View File

@@ -0,0 +1,7 @@
$ go run variadic-functions.go
[1 2] 3
[1 2 3] 6
[1 2 3 4] 10
# Another key aspect of functions in Go is their ability
# to form closures, which we'll look at next.