/** * Runs the stream to completion and yields the last value emitted by it, * discarding the rest of the elements. * * @tsplus getter effect/core/stream/Stream runLast */ export function runLast( self: Stream ): Effect> { return self.run(Sink.last()) }