otherwise just define ``` inline fun <T> try...
# announcements
j
otherwise just define
Copy code
inline fun <T> tryy(body: () -> T): T? = try { body() } catch (e: Exception) { null }
and use it like:
Copy code
val result = tryy { someOpThatCanError() }
👍 4