Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
10
Task/Call-a-function/Zkl/call-a-function-1.zkl
Normal file
10
Task/Call-a-function/Zkl/call-a-function-1.zkl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
f(); f(1,2,3,4);
|
||||
fcn f(a=1){}() // define and call f, which gets a set to 1
|
||||
fcn{vm.arglist}(1,2,3,4) // arglist is L(1,2,3,4)
|
||||
fcn{a1:=vm.nthArg(1)}(1,2,3) // a1 == 2
|
||||
(f() == True); (f() and 1 or 2)
|
||||
if (f()) println()
|
||||
f(f) // pass f to itself
|
||||
s:=f()
|
||||
fcn{}.isType(self.fcn) //True
|
||||
fcn{}.len.isType(self.fcn) //False, len is a Method
|
||||
Loading…
Add table
Add a link
Reference in a new issue