import { Enumerable } from "https://deno.land/x/proc@0.22.1/mod.ts";
Write all data to the writer.
Example
Write some numbers to stdout
.
range({to: 99})
.map(n => n.toString())
.transform(toBytes)
.writeTo(Deno.stdout.writable, {noclose: true});
Parameters
writer: Writable<T> | WritableStream<T>
The writer.