// ets_tracing: off
import * as A from "../../Collections/Immutable/Chunk";
import { pipe } from "../../Function";
import * as T from "../_internal/effect";
import * as SK from "../Sink";
import { run } from "./run";
/**
 * Runs the stream and collects all of its elements to an array.
 */

export const runCollect = self => T.map_(run(SK.collectAll())(self), A.toArray);
/**
 * Runs the stream and collects all of its elements to an array.
 */

export const runList = self => run(SK.collectAllToList())(self);
//# sourceMappingURL=runCollect.js.map