Advertisement
TwentyTwoRound

Untitled

Apr 28th, 2017
3,121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Haxe 0.24 KB | None | 0 0
  1. var obj:Dynamic;
  2.         var map:Map<Int, Dynamic> = new Map<Int, Dynamic>();
  3.  
  4.         for ( i in 0...10) {
  5.  
  6.             obj = Dynamic;
  7.             obj.id = i;
  8.             map.set(i, obj);
  9.         }
  10.        
  11.         var ob:Dynamic;
  12.         for (ob in map) {
  13.              trace(ob.id);
  14.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement