HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by melony | Hacker News Reader
Parent
Full thread
melony
·
What do also and use do?
View on HN
Aaron2222
·
Kotlin 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
Reply on news.ycombinator.com