Haxe Code Cookbook
CookbookData structures

Data structures

Overview of Haxe data structures snippets and tutorials.

  • 01-11-2016 Data structures /

     iterator

    Often, in games or UI, you might want to create a grid.

  • 01-11-2016 Data structures /

     iterator

    Haxe has a special range operator for(i in 0...5) to iterate forward. Because it requires min...max, you cannot do for(i in 5...0), thus you cannot iterate backwards using this syntax.

  • 01-11-2016 Data structures /

     array

    Sort an array of values

  • 01-11-2016 Data structures /

     iterator

    Haxe has a special range operator for(i in 0...5) to iterate forward. This does not allow to modify i in place, thus you cannot make it iterate in steps.