Function


fun interface Function<T : Any?, R : Any?>


Compat version of java.util.function.Function

Parameters
<T : Any?>

the type of the input to the operation

<R : Any?>

the type of the output of the function

Summary

Public functions

R
apply(value: T)

Applies the function to the argument parameter.

Public functions

apply

Added in 1.12.0
fun apply(value: T): R

Applies the function to the argument parameter.

Parameters
value: T

the argument for the function

Returns
R

the result after applying function