September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
5
Task/Topic-variable/Zkl/topic-variable.zkl
Normal file
5
Task/Topic-variable/Zkl/topic-variable.zkl
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
a,_,c:=List(1,2,3,4,5,6) //-->a=1, c=3, here _ is used as "ignore"
|
||||
3.0 : _.sqrt() : println(_) //-->"1.73205", _ (and :) is used to "explode" a computation
|
||||
// as syntactic sugar
|
||||
1.0 + 2 : _.sqrt() : _.pow(4) // no variables used, the compiler "implodes" the computation
|
||||
// --> 9
|
||||
Loading…
Add table
Add a link
Reference in a new issue