hm, you could overload the invoke operator as it l...
# language-proposals
k
hm, you could overload the invoke operator as it looks similar to the square brakets
Copy code
operator fun <K, V> Map<K,V>.invoke(key: K) = get(key) ?: keyNotFound(this, key)