Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
|
|
@ -0,0 +1,24 @@
|
|||
# use array of array for this
|
||||
proc hashGet ind$ . ar$[][] item$ .
|
||||
for i to len ar$[][]
|
||||
if ar$[i][1] = ind$
|
||||
item$ = ar$[i][2]
|
||||
return
|
||||
.
|
||||
.
|
||||
item$ = ""
|
||||
.
|
||||
proc hashSet ind$ val$ . ar$[][] .
|
||||
for i to len ar$[][]
|
||||
if ar$[i][1] = ind$
|
||||
ar$[i][2] = val$
|
||||
return
|
||||
.
|
||||
.
|
||||
.
|
||||
clothing$[][] = [ [ "type" "t-shirt" ] [ "color" "red" ] ]
|
||||
clothing$[][] &= [ "size" "xl" ]
|
||||
#
|
||||
hashSet "color" "green" clothing$[][]
|
||||
hashGet "color" clothing$[][] col$
|
||||
print col$
|
||||
Loading…
Add table
Add a link
Reference in a new issue