apply

fun <T> apply(obj: T, block: Consumer<T>): T

Calls the specified function block with obj value as its argument and returns obj.