for the specific use of this lambda, which just pr...
# announcements
d
for the specific use of this lambda, which just prints the hashcode, you can also just declare it as such:
val printHash: (Any) -> Unit = fun (any: Any) { println(any.hashCode()) }
g
@lifter Or even more idiomatic to use extension fucntion:
Copy code
fun Any.printHash() = println(hashCode())
👍 1