Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
agumonkey
· 6y ago · 0 comments
Any example ? or an idiom name I can google ?
Comments
[–]
swsieber
6y ago
Groovy also does it. I have no idea what the name is though:
https://mrhaki.blogspot.com/2009/11/groovy-goodness-passing-...
[–]
matsemann
6y ago
Not sure about the exact name. But kotlin also has "function with receiver" that together with this makes it very easy to write almost a custom domain language on top of kotlin.
[–]
matsemann
6y ago
Can't edit, but here's an explanation
https://kotlinlang.org/docs/reference/type-safe-builders.htm...
[–]
jayrhynas
6y ago
Swift calls it trailing closure syntax
[–]
agumonkey
OP
6y ago
Ok so it's an explicit parameter, the function is just ~curried so you can just write it nicely.