Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Call-a-function/11l/call-a-function.11l
Normal file
17
Task/Call-a-function/11l/call-a-function.11l
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
F no_args() {}
|
||||
// call
|
||||
no_args()
|
||||
|
||||
F fixed_args(x, y)
|
||||
print(‘x=#., y=#.’.format(x, y))
|
||||
// call
|
||||
fixed_args(1, 2) // x=1, y=2
|
||||
|
||||
// named arguments
|
||||
fixed_args(x' 1, y' 2)
|
||||
|
||||
F opt_args(x = 1)
|
||||
print(x)
|
||||
// calls
|
||||
opt_args() // 1
|
||||
opt_args(3.141) // 3.141
|
||||
Loading…
Add table
Add a link
Reference in a new issue