- Preparing search index...
- The search index is not available
neuroglancer
- partitionArray<T>(array: T[], start: number, end: number, predicate: ((x: T) => boolean)): number
-
Parameters
-
array: T[]
-
start: number
-
end: number
-
predicate: ((x: T) => boolean)
-
- (x: T): boolean
-
Returns boolean
Returns number
Partitions array[start:end] such that all elements for which predicate returns true are before the elements for which predicate returns false.
predicate will be called exactly once for each element in array[start:end], in order.
Returns
The index of the first element for which predicate returns false, or end if there is no such element.