Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,25 @@
|
|||
; create a dictionary
|
||||
d: #[
|
||||
name: "john"
|
||||
surname: "doe"
|
||||
age: 34
|
||||
]
|
||||
|
||||
; Iterate over key/value pairs
|
||||
loop d [key,value][
|
||||
print ["key =" key ", value =" value]
|
||||
]
|
||||
|
||||
print "----"
|
||||
|
||||
; Iterate over keys
|
||||
loop keys d [k][
|
||||
print ["key =" k]
|
||||
]
|
||||
|
||||
print "----"
|
||||
|
||||
; Iterate over values
|
||||
loop values d [v][
|
||||
print ["value =" v]
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue