groostav
07/14/2017, 1:06 AMmap[key]!!
. I suppose this is our mistake and we should instead write map[key] ?: keyNotFound(map, key)
but that's clunkey. Could write an extension function but that means we loose the slick square-brackets syntax, and its though to make idioms without them being part of the standard-lib.
3 replies
To bring this up again (because its annoyed me again), would the std-lib consider adding an
interface Dictionary {
}