Does anybody know if it is possible to check for f...
# getting-started
w
Does anybody know if it is possible to check for functional type in when expression? return when (arg) { is (() -> Any) -> arg() // doesn't work is Boolean -> arg.toString() else -> throw IllegalArgumentException("Unsupported type")