Haxe 2.09 can not compile this:
["Zebra", "Gnu", "Elephant"].map(callback(String.toLowerCase));
It complains with this error:
String has no field toLowerCase
Though it'd be easier to write that line without using Lambda.map, but I'd really want to start using the callback feature as it seems very suited to Lambda coding, as explained here: http://haxe.org/ref/callback
I guess it has to do with the fact the String.toLowerCase method is not static. The example given by the doc is :
callback(Math.pow, 3).
But Math.pow() is static...
Would you know any way to make it work?