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.
pos
newElements
Returns a copy of a token array with the token at
posreplaced bynewElements. Used to transform token streams without modifying the original array.