Hacker News new | ask | show | jobs
by lucasoshiro 531 days ago
Kotlin also has it, I can tell you that it's really useful
2 comments

Ruby has had this in the same form as "_1" for a while (and the obvious other indexes in the case of multiple params), but I agree Kotlin's "it" reads much better.
Groovy has had “it” for a while. I suspect it predates Kotlin’s usage.
Also matches Groovy