Join Slack
Powered by
Does anybody know if it is possible to check for f...
# getting-started
w
wnc_21
07/14/2017, 9:20 AM
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")
3
Views
Open in Slack
Previous
Next