sdk-common / com.tomtom.online.sdk.common.functional / Function1 / identity

identity

open static fun <T : Any!> identity(): ((T) -> T)!

Returns a function that always returns its input argument.

Parameters

- type of the argument and the result.

Return
((T) -> T)!: a function that returns its input argument.