hi everyone, I'm having a concern, theres a way to...
# announcements
n
hi everyone, I'm having a concern, theres a way to check if a map value is a lambda and call it?
Copy code
val map: Map<String, Any> = mapOf("test" to { println("its a test") }, "other" to "String")

map["test"]() // throws an error
I need to check when iterating the map the value types and then process each case