Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
9
Task/Call-a-function/Go/call-a-function-2.go
Normal file
9
Task/Call-a-function/Go/call-a-function-2.go
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
f()
|
||||
g(1, 2.0)
|
||||
// If f() is defined to return exactly the number and type of
|
||||
// arguments that g() accepts than they can be used in place:
|
||||
g(f())
|
||||
// But only without other arguments, this won't compile:
|
||||
//h("fail", f())
|
||||
// But this will:
|
||||
g(g(1, 2.0), 3.0)
|
||||
Loading…
Add table
Add a link
Reference in a new issue