-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Description
In haxe, we can use for/while loops on maps to fill them (as documented in the Haxe Manual.
So we have this example code (comments match haxe behavior):
var map = new IntMap();
var f = map.set.bind(_, "12");
f(1);
f(2);
f(3);
trace(map.get(1)); // 12
trace(map.get(2)); // 12
trace(map.get(3)); // 12In polymod this isn't supported and errors with the following errors:
ERROR Error while executing function WorstCParser.onCreate()#0:
Tried to access "_", but it is not a valid field or method.
ERROR Error while executing function WorstCParser.onCreate()#8:
Tried to access "bind", but it is not a valid field or method.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels