martynas
10/13/2015, 2:31 PMfun 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?