// ets_tracing: off import { identity } from "../../../../Function/index.js" import type * as O from "../../../../Option/index.js" import type * as C from "../core.js" import * as CollectWhile from "./collectWhile.js" /** * Terminates the stream when encountering the first `None`. */ export function collectWhileSome( self: C.Stream> ): C.Stream { return CollectWhile.collectWhile_(self, identity) }