a simple set of functional style programming for haxe