Haxe Code Cookbook

array

Overview of Haxe code snippets, examples and tutorials tagged with array.

  • 01-11-2016 Beginner /

     array collections data-structures

    In Haxe, the Array type represents a collection of elements ordered by their index (order number) in the collection.‥

  • 01-11-2016 Data structures /

     array

    Sort an array of values‥

  • 03-01-2017 Macros /

     build-function building-fields array

    Sometimes it is useful make your arrays compile-time, for example to embed data from files, to pre-calculate heavy calculations, generating lookup tables and other similar things. With macros this is perfectly doable but requires some basic knowledge of expression building. In this article you will find out how to build arrays and return them as expressions in a macro function.‥