Function


interface Function<I, O>


Represents a function.

Parameters
<I>

the type of the input to the function

<O>

the type of the output of the function

Summary

Public functions

O!
apply(input: I!)

Applies this function to the given input.

Public functions

apply

Added in 2.0.0
fun apply(input: I!): O!

Applies this function to the given input.

Parameters
input: I!

the input

Returns
O!

the function result.