mini\Table\Index\SortedArrayIndex::fromGenerator() Method

public static

Signature

public static function fromGenerator(Closure $fn): self

Parameters

Name Type Default Description
$fn Closure required Documentation missing

Returns

self

Documentation

Build index from a generator function.

Generator should yield [string $key, int $rowId] pairs.

Source

src/Table/Index/SortedArrayIndex.php:25-32