How to halt stream while returning a last value

I have also used Stream.concat for this eg. Stream.concat(other_stream, [:ending_value])