September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
4
Task/Introspection/Zkl/introspection-1.zkl
Normal file
4
Task/Introspection/Zkl/introspection-1.zkl
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
Language.version //-->L(1,12,8,"2014-04-01")
|
||||
if (Language.version[1] < 10) System.exit("Too old");
|
||||
var bloop=-123;
|
||||
if ((1).resolve("abs",1) and resolve("bloop",8)) bloop.abs().println()
|
||||
5
Task/Introspection/Zkl/introspection-2.zkl
Normal file
5
Task/Introspection/Zkl/introspection-2.zkl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
var n=3, x=1.0, a=5, z="zoo";
|
||||
self.vars; --> L(L("a",5),L("n",3),L("x",1),L("z","zoo"))
|
||||
sum:=self.vars.reduce(fcn(p,[(nm,v)],r){
|
||||
if((1).isType(v)){r.inc();p+v;} else p},0,num:=Ref(0));
|
||||
println("Num int vars = ",num.value,". Sum = ",sum);
|
||||
Loading…
Add table
Add a link
Reference in a new issue