nonNullGetOrDefault

fun <A, B> nonNullGetOrDefault(map: Map<A, B>, key: A?, defaultValue: B): B

Helper to return a defaultValue when getting maybe null keys from a map.

Parameters

A

the type of the map key

B

the type of the map value