Uses of Interface
net.ericaro.neoitertools.Lambda

Packages that use Lambda
net.ericaro.neoitertools   
net.ericaro.neoitertools.generators   
 

Uses of Lambda in net.ericaro.neoitertools
 

Methods in net.ericaro.neoitertools that return Lambda
static
<T> Lambda<T,T>
Itertools.identity()
          Return the identity Lambda function.
 

Methods in net.ericaro.neoitertools with parameters of type Lambda
static
<T> boolean
Itertools.all(Generator<T> generator, Lambda<? super T,java.lang.Boolean> predicate)
           Return True if all elements of the generator are evaluated to true with the Predicate (or if the generator is empty).
static
<T> boolean
Itertools.any(Generator<T> generator, Lambda<? super T,java.lang.Boolean> predicate)
           Return True if any element of the generator is mapped to true.
static
<T> Generator<T>
Itertools.dropwhile(Lambda<T,java.lang.Boolean> predicate, Generator<T> generator)
           Make an generator that drops elements from the generator as long as the predicate is true.
static
<T> Generator<T>
Itertools.filter(Lambda<T,java.lang.Boolean> predicate, Generator<T> generator)
           Make an generator that filters elements from generator returning only those for which the predicate is True.
static
<T> Generator<T>
Itertools.filterfalse(Lambda<T,java.lang.Boolean> predicate, Generator<T> generator)
           Make an generator that filters elements from generator returning only those for which the predicate is False.
static
<T,K> Generator<Pair<K,Generator<T>>>
Itertools.groupby(Generator<T> generator, Lambda<T,K> key)
           Make an generator that returns consecutive keys and groups from the source generator.
static
<T,K> Generator<K>
Itertools.map(Lambda<? super T,K> mapper, Generator<T> sequence)
          Apply Lambda to every item of sequence and return a Generator of the results.
static
<T,K> Generator<T>
Itertools.sorted(Generator<T> generator, java.util.Comparator<? super K> cmp, Lambda<? super T,K> key, boolean reverse)
           Return a new sorted generator from the items in generator.
static
<T,K extends java.lang.Comparable<? super K>>
Generator<T>
Itertools.sorted(Generator<T> generator, Lambda<T,K> key, boolean reverse)
          Return a new sorted generator from the items in generator. the Key Lambda is used to extract a key from T, and that key natural order is used to sort the whole generator.
static
<T> Generator<T>
Itertools.takewhile(Generator<T> generator, Lambda<? super T,java.lang.Boolean> predicate)
          Make an generator that returns elements from the generator as long as the predicate is true.
 

Uses of Lambda in net.ericaro.neoitertools.generators
 

Constructors in net.ericaro.neoitertools.generators with parameters of type Lambda
DropWhileGenerator(Lambda<T,java.lang.Boolean> predicate, Generator<T> source)
           
FilterGenerator(Lambda<T,java.lang.Boolean> predicate, Generator<T> source)
           
FilterGenerator(Lambda<T,java.lang.Boolean> predicate, Generator<T> source, boolean negate)
           
GroupByGenerator(Generator<T> generator, Lambda<T,K> keyMapper)
           
MapGenerator(Lambda<? super T,K> map, Generator<T> source)
           
TakeWhileGenerator(Lambda<? super T,java.lang.Boolean> predicate, Generator<T> iterator)
          Make an iterator that returns elements from the iterator as long as the predicate is true.
 



Copyright © 2011. All Rights Reserved.