Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 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