Recently I started reading about Javaslang and its improvements to the classes added by Java 8. Diving into the documentation I came across the following method:
Option.nothing()
Which returns an instance of a singleton of type Option<Void>
. I couldn't however think of a single use case where this could be handy (maybe for indicating that it's the end of the chain, but I can still do .map(v -> 1)
). Is there a use case where this could be handy and preferable to None
?