6 ms·
What do also and use do?
by melony 3y ago
What do also and use do?
- Aaron2222 3y agoKotlin has a bunch of scope functions[0]. `a.also(f)` takes a function `f`, calls `f(a)`, and returns `a`. [0]: https://kotlinlang.org/docs/scope-functions.html https://kotlinlang.org/docs/scope-functions.html