Overview of Haxe data structures snippets and tutorials.
Apr 02, 2016 Data structures / Grid iterator
Often, in games or UI, you might want to create a grid.
Mar 22, 2016 Data structures / Reverse 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.
Apr 14, 2018 Data structures / A fixed ring array
A fixed ring array is especially useful when you need a hard upper bound for how much data can be in the queue.
Mar 22, 2016 Data structures / Sorting arrays
Sort an array of values
Mar 22, 2016 Data structures / Stepped 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.