mini\Table\Index::fromGenerator() Method

public static

Signature

public static function fromGenerator(Closure $fn): mini\Table\Index\IndexInterface

Parameters

Name Type Default Description
$fn Closure required Documentation missing

Returns

mini\Table\Index\IndexInterface

Documentation

Build index from a generator function.

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

Source

src/Table/Index.php:40-43