On the other hand the first one could be a top-lev...
# stdlib
i
On the other hand the first one could be a top-level function like:
Copy code
fun <T : Any> optionalOf(value: T?): Optional<T> = Optional.ofNullable<T>(value)