andThen

infix fun <T, R, V> (T) -> R.andThen(other: (R) -> V): (T) -> V

Composes two functions, applying the receiver function first and then the other function.

Return

A composed function that applies the receiver function followed by the other function.

Parameters

T

The input type for the receiver function.

R

The output type of the receiver function and input type for the other function.

V

The output type of the other function.

other

The function to apply after the receiver function.