export function join<T>(first: T[], second: T[], firstSize: number, secondSize: number): T[] {
let out: T[] = []
let i = 0
for (; firstSize * i < first.length && secondSize * i < second.length; i++) {
out = out.concat(
first.slice(firstSize * i, firstSize),
second.slice(secondSize * i, secondSize),
)
}
out = out.concat(first.slice(firstSize * i), second.slice(secondSize * i))
return out
}
优雅么。。。