// ets_tracing: off import { identity } from "../../../../Function/index.js" import type * as C from "../core.js" import * as ZipAllWith from "./zipAllWith.js" /** * Zips this stream with another point-wise, and keeps only elements from the other stream. * * The provided default value will be used if this stream ends before the other one. */ export function zipAllRight_( self: C.Stream, that: C.Stream, default_: A1 ): C.Stream { return ZipAllWith.zipAllWith_( self, that, (_) => default_, identity, (_, o) => o ) } /** * Zips this stream with another point-wise, and keeps only elements from the other stream. * * The provided default value will be used if this stream ends before the other one. * * @ets_data_first zipAllRight_ */ export function zipAllRight(that: C.Stream, default_: A1) { return (self: C.Stream) => zipAllRight_(self, that, default_) }