lifter
09/06/2018, 8:33 PMfun <T: Any> printHash(t: T) = println(t.hashCode())
...and define it as a function literal?
I was thinking something like
val printHash: <T: Any> (T) -> Unit = fun(t: T) { println(t.hashCode()) }
But this doesn't compile. Tried moving the <T: Any>
around to different places but I can't find anything that works.