// ets_tracing: off
import * as E from "../../../../Either";
import * as O from "../../../../Option";
import * as CollectWhile from "./collectWhile";
/**
 * Terminates the stream when encountering the first `Right`.
 */

export function collectWhileLeft(self) {
  return CollectWhile.collectWhile_(self, E.fold(l => O.some(l), _ => O.none));
}
//# sourceMappingURL=collectWhileLeft.js.map