Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Collections/Zkl/collections.zkl
Normal file
10
Task/Collections/Zkl/collections.zkl
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
Lists: L(1,2,3).append(4); //-->L(1,2,3,4), mutable list
|
||||
Read only list: ROList(1,2,3).append(4); // creates two lists
|
||||
|
||||
Bit bucket: Data(0,Int,1,2,3) // three bytes
|
||||
The "Int" means treat contents as a byte stream
|
||||
Data(0,Int,"foo ","bar") //-->7 bytes
|
||||
Data(0,Int,"foo ").append("bar") //ditto
|
||||
Data(0,Int,"foo\n","bar").readln() //-->"foo\n"
|
||||
Data(0,String,"foo ","bar") //-->9 bytes (2 \0s)
|
||||
Data(0,String,"foo ").append("bar").readln() //-->"foo "
|
||||
Loading…
Add table
Add a link
Reference in a new issue