W3cubDocs

/Kotlin

also

inline fun <T> T.also(block: (T) -> Unit): T

Platform and version requirements: Kotlin 1.1

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

© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/also.html