메소드 |
설명 |
|
appendIterator ( Traversable $iterator, Traversable $otherIterator ) : Pinq\Iterators\IWrapperIterator |
Returns an iterator which will return all values from both
the supplied iterators. |
|
arrayCompatibleIterator ( Traversable $iterator ) : Pinq\Iterators\IWrapperIterator |
Returns an iterator which will map any non integer or string keys
to incrementing integers. |
|
arrayIterator ( array $array ) : Traversable |
Returns an iterator for the supplied array. |
|
createOrderedMap ( Traversable $iterator = null ) : Pinq\Iterators\IOrderedMap |
Creates an ordered map from the supplied iterator. |
|
createSet ( Traversable $iterator = null ) : Pinq\Iterators\ISet |
Creates an set from the supplied iterator values. |
|
differenceIterator ( Traversable $iterator, Traversable $otherIterator ) : Pinq\Iterators\IWrapperIterator |
Returns an iterator which will return uniqe values present
in the first but not the second iterator. |
|
emptyIterator ( ) : Traversable |
Returns an empty iterator. |
|
exceptIterator ( Traversable $iterator, Traversable $otherIterator ) : Pinq\Iterators\IWrapperIterator |
Returns an iterator which will return all values in the first
but not present in the second iterator. |
|
filterIterator ( Traversable $iterator, callable $predicate ) : Pinq\Iterators\IWrapperIterator |
Returns an iterator which will filter the elements according to
the supplied predicate function. |
|
flattenedIterator ( Traversable $iterator ) : Pinq\Iterators\IWrapperIterator |
Returns an iterator which will iterate each element
of the inner iterator's values. An exception will be thrown
if an invalid iterator is returned from the supplied iterator. |
|
groupJoinIterator ( Traversable $outerIterator, Traversable $innerIterator, callable $traversableFactory ) : Pinq\Iterators\IJoinIterator |
Returns an iterator which will return the outer elements joined
to the inner elements. All matched inner elements for each
outer element will be wrapped in a traversable implementation from the supplied factory. |
|
groupedIterator ( Traversable $iterator, callable $groupKeyFunction, callable $traversableFactory ) : Pinq\Iterators\IWrapperIterator |
Returns an iterator which will group the elements according to
the supplied function and wrap each group in a traversable
implementation from the supplied factory. |
|
intersectionIterator ( Traversable $iterator, Traversable $otherIterator ) : Pinq\Iterators\IWrapperIterator |
Returns an iterator which will return unique values present
in the first and second iterator. |
|
joinIterator ( Traversable $outerIterator, Traversable $innerIterator ) : Pinq\Iterators\IJoinIterator |
Returns an iterator which will return the outer elements joined
to the inner elements. |
|
orderedIterator ( Traversable $iterator, callable $function, boolean $isAscending ) : Pinq\Iterators\IOrderedIterator |
Returns an iterator with will sort the elements according to
the supplied function and direction. |
|
projectionIterator ( Traversable $iterator, callable $keyProjectionFunction = null, callable $valueProjectionFunction = null ) : Pinq\Iterators\IWrapperIterator |
Returns an iterator which will return the elements mapped by
the supplied functions or the original if no function is supplied. |
|
rangeIterator ( Traversable $iterator, integer $start, integer | null $amount ) : Pinq\Iterators\IWrapperIterator |
Returns an iterator which will only iterate the elements in the
supplied range. |
|
reindexerIterator ( Traversable $iterator ) : Pinq\Iterators\IWrapperIterator |
Returns an iterator which will return the map the keys
to 0-based incrementing integers |
|
toArray ( Traversable $iterator ) : array |
Safely converts the supplied iterator to an array. |
|
toIterator ( Traversable | array $traversableOrArray ) : Traversable |
Returns the supplied traversable or array as an iterator
compatible with this scheme. |
|
unionIterator ( Traversable $iterator, Traversable $otherIterator ) : Pinq\Iterators\IWrapperIterator |
Returns an iterator which will return unique values present
in the first or second iterator. |
|
uniqueIterator ( Traversable $iterator ) : Pinq\Iterators\IWrapperIterator |
Returns an iterator which will return unique values using
strict equality. |
|
uniqueKeyIterator ( Traversable $iterator ) : Pinq\Iterators\IWrapperIterator |
Returns an iterator which will return only the first associated value
for any key. |
|
walk ( Traversable $iterator, callable $function ) : void |
Iterate over the keys and values of the supplied iterator and
passes them (value, key) to the supplied function. |
|
whereInIterator ( Traversable $iterator, Traversable $otherIterator ) : Pinq\Iterators\IWrapperIterator |
Returns an iterator which will return all values in the first
iterator present in the second. |
|