haXe API Documentation
Back |
Indexclass Lambda
Available in flash8, neko, js, flash, php, cpp
The Lambda
class is a collection of functional methods in order to
use functional-style programming with haXe.
- static function array<A>(it : Iterable<A>) : Array<A>
- Creates an
Array
from an Iterable
- static function concat<T>(a : Iterable<T>, b : Iterable<T>) : List<T>
- static function count<A>(it : Iterable<A>, ?pred : A -> Bool) : Int
- static function empty(it : Iterable<Dynamic>) : Bool
- static function exists<A>(it : Iterable<A>, f : A -> Bool) : Bool
- static function filter<A>(it : Iterable<A>, f : A -> Bool) : List<A>
- static function fold<A, B>(it : Iterable<A>, f : A -> B -> B, first : B) : B
- static function foreach<A>(it : Iterable<A>, f : A -> Bool) : Bool
- static function has<A>(it : Iterable<A>, elt : A, ?cmp : A -> A -> Bool) : Bool
- static function indexOf<T>(it : Iterable<T>, v : T) : Int
- static function iter<A>(it : Iterable<A>, f : A -> Void) : Void
- static function list<A>(it : Iterable<A>) : List<A>
- static function map<A, B>(it : Iterable<A>, f : A -> B) : List<B>
- static function mapi<A, B>(it : Iterable<A>, f : Int -> A -> B) : List<B>
Back |
Index