Open utterances-bot opened 5 years ago
There is an error.
var keys = [for(key in map.keys() key]
should be var keys = [for(key in map.keys()) key]
@crazyjat thanks, I've just updated that.
Is there a(n easy) way to clear a Map?
for (key in map.keys()) map.remove (key);
Is there any easy way to see if the Map
is empty? I can technically use !keys().hasNext()
but wouldn't it be worth adding Map.isEmpty()
?
It says Lamba.array(map)
instead of Lambda.array(map)
near crazyjat's correction
Using maps - Beginner - Haxe programming language cookbook
In Haxe, Map (also known as dictionary) allows key to value mapping for arbitrary value types and many key types.
https://code.haxe.org/category/beginner/maps.html