View the Project on GitHub polygonal/ds

Data Structures For Games

A library written in the Haxe language providing standard data structures like linked lists, queues, stacks or multi-dimensional arrays. The result is somewhere in between the C++ STL (Standard Template Library) and the Java Collection framework.

The library was initially written for Flash and is thus highly optimized for Flash AVM2, but also supports JavaScript, C++ and Neko.


Examples and Articles

Questions, Comments, Feature Requests...


Install Haxe and run $ haxelib install polygonal-ds from the console. This installs the polygonal-ds library hosted on, which always mirrors the git master branch. From now on just compile with $ haxe ... -lib polygonal-ds. If you want to test the latest beta build, you should pull the dev branch and add the src folder to the classpath via $ haxe ... -cp src.