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

compose

open fun <A2 : Any!> compose(@NonNull before: (in A2) -> out A): ((A2) -> R)!

Returns a composed function that first applies the before function and then applies itself to the result.

Parameters

before - (in A2) -> out A: function that will be applied before this function.

- type of the argument of the composed function.

Return
((A2) -> R)!: a function composition.