I want to prepend a stream with an Optional. Since Stream.concat can only concatinate Streams I have this question:
Stream.concat
How do I convert an Optional
If restricted with Java-8, you can do this:
Stream texts = optional.map(Stream::of).orElseGet(Stream::empty);