I had a thought last night of a function with sign...
# stdlib
s
I had a thought last night of a function with signature
Copy code
fun <E> Iterable<E?>.noNullsOrEmpty(): List<E> = if (null in this) emptyList() else requireNoNulls()
Possible addition to the stdlib?
🚫 4