any[] import {EMPTY_ARRAY} from '@fuzdev/fuz_util/array.js'; 4 declarations
any[] import {EMPTY_ARRAY} from '@fuzdev/fuz_util/array.js'; (array: any[], index: number): void import {remove_unordered} from '@fuzdev/fuz_util/array.js'; Removes an element from array at index in an unordered manner.
arrayany[]indexnumbervoid array — swaps element at index with last element, then pops<T>(value: T): T extends readonly any[] ? T : T[] import {to_array} from '@fuzdev/fuz_util/array.js'; Converts value to an array if it's not already.
valueTT extends readonly any[] ? T : T[] to_array<T>T<T extends ReadonlyArray<any>>(array: T): () => ArrayElement<T> import {to_next} from '@fuzdev/fuz_util/array.js'; Returns a function that returns the next item in the array
in a linear sequence, looping back to index 0 when it reaches the end.
arrayT() => ArrayElement<T> to_next<T extends ReadonlyArray<any>>TReadonlyArray<any>