norman784
val map: Map<String, Any> = mapOf("test" to { println("its a test") }, "other" to "String") map["test"]() // throws an error