https://kotlinlang.org logo
k

kevinmost

02/01/2018, 3:48 PM
in this case, the method ref
Item::call
can be used as a
(T) -> Unit
since it's a function that takes 1 param
T
and returns
Unit
, so it makes sense to pass it as the param in the parens. Since you're not using a lambda you can't use the special syntax that omits the parens in this case