If I have an extension function for an object like...
# getting-started
m
If I have an extension function for an object like this
Copy code
fun Object.modifyIf(clause: () -> Boolean, default: () -> Unit = { doDefault() }) {
    if (clause()) {
        modify()
    } else {
        default()
    }
}
how should I modify it so that
default
could get that
Object
and use it?