Is there any way to achieve “forEach” or “ifPresen...
# arrow
p
Is there any way to achieve “forEach” or “ifPresent()” behaviour on
Option
without doing a
fold
to
Unit
?
Copy code
.fold({ Unit }) { println(it) }