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