blob: 24e4750d0892b91cc8171a26784c3a119699cea1 [file] [log] [blame]
fun <T, R> io(s: R, a: (R) -> T): T {
try {
return a(s)
} finally {
try {
s.toString()
} catch(e: Exception) {
//NOP
}
}
}
fun box() : String {
return io(("OK"), {it})
}