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
A nice library from one of my ex collegues is Streamify. A lot of collectors, creating streams from practicly everything.
https://github.com/sourcy/streamify
Creating a stream form an optional in streamify:
Streamify.stream(optional)