"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.collectWhileSome = void 0;
// ets_tracing: off
const Function_1 = require("../../Function");
const collectWhileMap_1 = require("./collectWhileMap");
/**
 * Terminates the stream when encountering the first `None`.
 */
function collectWhileSome(self) {
    return (0, collectWhileMap_1.collectWhileMap_)(self, Function_1.identity);
}
exports.collectWhileSome = collectWhileSome;
//# sourceMappingURL=collectWhileSome.js.map