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
Documentation
Build index from a generator function.
Generator should yield [string $key, int $rowId] pairs.