Using Haxe: Part 5: Lambda

Learning Haxe

Using Haxe

Haxe is a strongly-typed multi-paradigm programming language that also supports cross-platform compiling into many different source and byte-code languages such as ActionScript 3, JavaScript, Java, C++, C#, PHP, Python, Lua, and Node.js.


In programming terminology, a lambda is often defined as part of the functional language model. It is a function applied to a list or iterators to process them in some way.

In Haxe, a Lambda can often be found as part of Lists or Arrays to process, filter, or other check through some existing data structure.

Static Extensions

In Haxe, the use of Lambda is a static extension to existing iterator functionality. Unlike the normal import keyword functionality, static extensions are included through the keyword using.

Working with Lambdas

Some common Lambda functions include has(), find(), foreach(), and filter(). These can be used to work on existing data structures to search or test its contents.