class Lambda

The Lambda class is a collection of methods to support functional programming. It is ideally used with 'using Lambda' and then acts as an extension to Iterable types.

On static platforms, working with the Iterable structure might be slower than performing the operations directly on known types, such as Array and List.

If the first argument to any of the methods is null, the result is unspecified.

Class Fields

static function count<A>(it:Iterable<A>, ?pred:A ->Bool): Int

Returns the number of elements in it for which pred is true, or the total number of elements in it if pred is null.

This function traverses all elements.