Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Call-a-function/Latitude/call-a-function-1.latitude
Normal file
7
Task/Call-a-function/Latitude/call-a-function-1.latitude
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
foo (1, 2, 3). ; (1) Ordinary call
|
||||
foo (). ; (2) No arguments
|
||||
foo. ; (3) Equivalent to (2)
|
||||
foo (1). ; (4) Single-argument function
|
||||
foo 1. ; (5) Equivalent to (4)
|
||||
foo (bar). ; (6) Parentheses necessary here since bar is not a literal
|
||||
foo: 1, 2, 3. ; (7) Alternative syntax, equivalent to (1)
|
||||
2
Task/Call-a-function/Latitude/call-a-function-2.latitude
Normal file
2
Task/Call-a-function/Latitude/call-a-function-2.latitude
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
myProc := proc { foo. }.
|
||||
myProc call (1, 2, 3).
|
||||
3
Task/Call-a-function/Latitude/call-a-function-3.latitude
Normal file
3
Task/Call-a-function/Latitude/call-a-function-3.latitude
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
myProc1 := #'foo shield.
|
||||
myProc2 := proc { foo. }.
|
||||
myProc3 := proc { foo. } shield.
|
||||
Loading…
Add table
Add a link
Reference in a new issue