export function copyTo(s: A[], t: A[]) { for (let i = 0; i < s.length; i++) t[i] = s[i] }