GatherCursor.locate

size_t locate(size_t i, ref View view) @safe pure nothrow

Locates the global index i, refreshing the cached view on chunk changes.

Parameters

ithe global element index
viewset to the view of the chunk holding i

Returns

the index of i within its chunk.