Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,27 @@
|
|||
DECLARE base$, update$, merge$ ASSOC STRING
|
||||
|
||||
base$("name") = "Rocket Skates"
|
||||
base$("price") = "12.75"
|
||||
base$("color") = "yellow"
|
||||
|
||||
PRINT "Base array"
|
||||
FOR x$ IN OBTAIN$(base$)
|
||||
PRINT x$, " : ", base$(x$)
|
||||
NEXT
|
||||
|
||||
update$("price") = "15.25"
|
||||
update$("color") = "red"
|
||||
update$("year") = "1974"
|
||||
|
||||
PRINT NL$, "Update array"
|
||||
FOR x$ IN OBTAIN$(update$)
|
||||
PRINT x$, " : ", update$(x$)
|
||||
NEXT
|
||||
|
||||
merge$() = base$()
|
||||
merge$() = update$()
|
||||
|
||||
PRINT NL$, "Merged array"
|
||||
FOR x$ IN OBTAIN$(merge$)
|
||||
PRINT x$, " : ", merge$(x$)
|
||||
NEXT
|
||||
Loading…
Add table
Add a link
Reference in a new issue