Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,10 @@
|
|||
# create map
|
||||
map := StringMap->New();
|
||||
# insert
|
||||
map->Insert("two", IntHolder->New(2)->As(Base));
|
||||
map->Insert("thirteen", IntHolder->New(13)->As(Base));
|
||||
map->Insert("five", IntHolder->New(5)->As(Base));
|
||||
map->Insert("seven", IntHolder->New(7)->As(Base));
|
||||
# find
|
||||
map->Find("thirteen")->As(IntHolder)->GetValue()->PrintLine();
|
||||
map->Find("seven")->As(IntHolder)->GetValue()->PrintLine();
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
# create map
|
||||
map := StringHash->New();
|
||||
# insert
|
||||
map->Insert("two", IntHolder->New(2)->As(Base));
|
||||
map->Insert("thirteen", IntHolder->New(13)->As(Base));
|
||||
map->Insert("five", IntHolder->New(5)->As(Base));
|
||||
map->Insert("seven", IntHolder->New(7)->As(Base));
|
||||
# find
|
||||
map->Find("thirteen")->As(IntHolder)->GetValue()->PrintLine();
|
||||
map->Find("seven")->As(IntHolder)->GetValue()->PrintLine();
|
||||
Loading…
Add table
Add a link
Reference in a new issue