Hacker News new | ask | show | jobs
by hnben 665 days ago
> `foo({ a -> a })` and `foo { a -> b }` are the same

I am new to kotlin, so I may be missing something obvious, but shouldn't it be "a->a" in the 2nd case, too?

1 comments

You're right, my brain farted somewhere in the middle.