Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 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