<@U2FFBHQR2> if I understood you correctly, this c...
# language-proposals
v
@mmotiwala if I understood you correctly, this can be achieved with this extension (on pure function):
Copy code
fun <P1, R>  Function1<P1, R>.isDefinedAt(p: P1): Boolean = 
    try {
        this.invoke(p)
        true
    } catch(e: Exception) {
        false
    }