Skip to content

Commit

Permalink
+ Example of Unordered Map added.
Browse files Browse the repository at this point in the history
Signed-off-by: iconstudio <yoyofa2@hotmail.com>
  • Loading branch information
iconstudio committed Sep 13, 2020
1 parent 543a67c commit ece3a2c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/objects/oExample/Create_0.gml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ print(test_unomap)

/*
show_debug_message("\nMultimap")
show_debug_message("\nTransform a List into a Multimap")
// Transform into paired-container
transform(test_sum.first(), test_sum.last(), test_sum.first(), function (Value) {
return [irandom(2), Value]
})
test_multimap = new Multimap(test_sum)
for (var KIt = test_multimap.first(); KIt != test_multimap.last(); KIt.go()) {
Expand All @@ -85,10 +90,5 @@ show_debug_message("The " + string(nth) + "th Iterator: " + string(nth_result_it
show_debug_message("The " + string(nth) + "th Value: " + string(nth_result_value))
print(test_sum)
show_debug_message("\nTransform a List into a Multimap")
// Transform into paired-container
transform(test_sum.first(), test_sum.last(), test_sum.first(), function (Value) {
return [irandom(2), Value]
})
print(test_sum)

0 comments on commit ece3a2c

Please sign in to comment.