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.

Use these code samples to learn about Android 7.1 capabilities and APIs.

Updated May 20, 2024

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Dec 18, 2024

The developer center about creating games for Android. Learn how to develop, optimize, and publish your Android game using the latest tools and SDKs.

Updated Jun 3, 2024