sdk-common / com.tomtom.online.sdk.common.functional / Function2 / andThen

andThen

open fun <R2 : Any!> andThen(after: ((in R) -> out R2)!): ((A1, A2) -> R2)!

Returns a composed function that first applies this function to the given two inputs and then applies the function passed as after to the result.

Parameters

after - ((in R) -> out R2)!: function that will be applied after this function.

- type of the output of the composed function.

Return
((A1, A2) -> R2)!: a function composition.