Function arrayReplaceAt

Source
arrayReplaceAt<T>(src: T[], pos: number, newElements: T[]): T[]

Returns a copy of a token array with the token at pos replaced by newElements. Used to transform token streams without modifying the original array.