Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
8
Task/Call-a-function/Go/call-a-function-3.go
Normal file
8
Task/Call-a-function/Go/call-a-function-3.go
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
h("ex1")
|
||||
h("ex2", 1, 2)
|
||||
h("ex3", 1, 2, 3, 4)
|
||||
// such functions can also be called by expanding a slice:
|
||||
list := []int{1,2,3,4}
|
||||
h("ex4", list...)
|
||||
// but again, not mixed with other arguments, this won't compile:
|
||||
//h("fail", 2, list...)
|
||||
Loading…
Add table
Add a link
Reference in a new issue