I have following signature:
fun <T, R> JsonNullable<T>.map(func: (T) -> R): JsonNullable<R> {
How can I restrict T and R to be non-nullable ?
I have following signature:
fun <T, R> JsonNullable<T>.map(func: (T) -> R): JsonNullable<R> {
How can I restrict T and R to be non-nullable ?