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.


Lambda

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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.