@FunctionalInterface
interface Function<T, R>


Represents a function that accepts an argument and produces a result. It is used internally to avoid using Java 8 functional interface that leads to desugaring and Proguard shrinking.

Parameters
<T>

: the type of the input of the function

<R>

: the type of the output of the function

See also
Function

Summary

Public functions

R!
apply(t: T!)

Applies this function to the given argument.

Public functions

apply

Added in 1.0.0
fun apply(t: T!): R!

Applies this function to the given argument.

Parameters
t: T!

the function argument

Returns
R!

the function result