Bånder

GeneratorCollection
in package
implements IteratorAggregate

Tags
template
implements

Table of Contents

Interfaces

IteratorAggregate

Properties

$itemCollection  : iterable<string|int, mixed>
$items  : array<string|int, T>

Methods

__construct()  : mixed
each()  : Generator<string|int, U>
filter()  : GeneratorCollection<string|int, T>
getIterator()  : Generator<string|int, T>
map()  : GeneratorCollection<string|int, U>
filterItems()  : Generator<string|int, T>

Properties

Methods

__construct()

public __construct(iterable<string|int, T$itemCollection, T ...$items) : mixed
Parameters
$itemCollection : iterable<string|int, T>
$items : T

each()

public each(callable(T): U $func) : Generator<string|int, U>
Parameters
$func : callable(T): U
Tags
template
throws
Exception
Return values
Generator<string|int, U>

getIterator()

public getIterator() : Generator<string|int, T>
Return values
Generator<string|int, T>

filterItems()

private filterItems(callable $func) : Generator<string|int, T>
Parameters
$func : callable
Tags
throws
Exception
Return values
Generator<string|int, T>

        
On this page

Search results