export async function toArrayAsync( iterable: AsyncIterable ): Promise>> { const result: Array> = [] for await (const element of iterable) { result.push(element) } return result }