@FunctionalInterface interface CheckedFunction1<A : Any!, R : Any!>
Represents a function with a single argument that can throw a checked exception.
abstract fun apply(value: A): R
Applies this function to the given argument. Exception may be thrown while doing this. |
|
open fun asUnchecked(): ((A) -> R)!
Produces unchecked function from this function wrapping the possibly thrown exception in runtime exception. |