PHP Class phpstreams\operations\DistinctOperation

A stream that will only yield each distinct value once.
Author: Bert Peters ([email protected])
Inheritance: extends phpstreams\Stream
Datei anzeigen Open project: bertptrs/phpstreams

Public Methods

Method Description
__construct ( Traversable $source, boolean $strict ) Construct a unique stream.
getIterator ( )

Private Methods

Method Description
sortedIterator ( ) Iterator for sorted streams.
unsortedIterator ( ) Iterator for unsorted streams.

Method Details

__construct() public method

This stream will yield each distinct value only once.
public __construct ( Traversable $source, boolean $strict )
$source Traversable
$strict boolean Whether to use strict comparisons when determining uniqueness.

getIterator() public method

public getIterator ( )