Comment

Comment by whitenoice

You could also use Optional, like

Optional.ofNullable(s).map(i -> {switch (i) {...}}).orElse()

parent whitenoice 6 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton