// ets_tracing: off import * as CH from "../../Channel/index.js" import * as C from "../core.js" /** * Concatenates the specified stream with this stream, resulting in a stream * that emits the elements from this stream and then the elements from the specified stream. */ export function concat_( self: C.Stream, that: C.Stream ): C.Stream { return new C.Stream(CH.zipRight_(self.channel, that.channel)) } /** * Concatenates the specified stream with this stream, resulting in a stream * that emits the elements from this stream and then the elements from the specified stream. * * @ets_data_first concat_ */ export function concat(that: C.Stream) { return (self: C.Stream) => concat_(self, that) }