Y
Hacker News
new
|
ask
|
show
|
jobs
by
Aaron2222
1108 days 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