Documentation

TakeIterator extends DelegatingIterator
in package

An iterator that contains a subset of the elements in another iterator.

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

Table of Contents

Methods

__construct()  : mixed
Constructor

Methods

__construct()

Constructor

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

The iterator containing the values

$n :

The maximum number of elements to return


        
On this page

Search results