Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
melony
· 3y ago · 0 comments
What do also and use do?
Comments
[–]
Aaron2222
3y ago
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