export async function * chunkGen<T> (iter: AsyncIterable<T>, num: number): AsyncIterable<Array<T>> {
  let chunk = []

  for await (const elem of iter) {
    chunk.push(elem)