Function

typealias Function<Input, Result> = suspend (Input) -> Result(source)

Represents a potentially suspendable operation that accepts one argument and produces a result. Based on Java's Function functional interface.

Parameters

Input

the type of the argument

Result

the type of the result