andThen

fun () -> Unit?.andThen(other: () -> Unit): () -> Unit

Chains other lambda function to execute after this lambda function

Parameters

other

lambda function with the same signature as this function


fun <A, B> (A, B) -> Unit?.andThen(other: (A, B) -> Unit): (A, B) -> Unit
fun <A, B, C> (A, B, C) -> Unit?.andThen(other: (A, B, C) -> Unit): (A, B, C) -> Unit
fun <A, B, C, D> (A, B, C, D) -> Unit?.andThen(other: (A, B, C, D) -> Unit): (A, B, C, D) -> Unit

Chains other lambda function to execute after this lambda function with the same inputs

Parameters

other

lambda function with the same signature as this function