-
Notifications
You must be signed in to change notification settings - Fork 426
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Ben McDonald <46734217+bmcdonald3@users.noreply.github.com>
- Loading branch information
1 parent
7bad5d8
commit 4d9763d
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
use Map; | ||
|
||
var m = new map(int, int); | ||
m[0] = 1; | ||
|
||
for key in m do | ||
writeln(key); | ||
|
||
for (key, val) in m.items() do | ||
writeln(key, "->", val); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$CHPL_HOME/modules/internal/ChapelIteratorSupport.chpl:392: In function '_getIterator': | ||
$CHPL_HOME/modules/internal/ChapelIteratorSupport.chpl:393: warning: 'Map.these' is unstable | ||
mapIterators.chpl:6: called as _getIterator(x: map(int(64),int(64),false)) | ||
note: generic instantiations are underlined in the above callstack | ||
mapIterators.chpl:9: note: 'Map.items' is unstable | ||
0 | ||
0->1 |