Documentation

FilterIterator extends DelegatingIterator
in package

An iterator that filters elements based upon a supplied predicate function.

It is returned by calls to Iterator::filter().

Table of Contents

Methods

__construct()  : mixed
Constructs a new FilterIterator

Methods

__construct()

Constructs a new FilterIterator

public __construct( $iterator,  $f) : mixed
Parameters
$iterator :

The iterator containing the values

$f :

The predicate function


        
On this page

Search results