kevinmost
02/01/2018, 3:48 PMforEach(Item::call)
, by the way. forEach
takes a (T) -> Unit
as its argument. You can do foo.forEach { it.call() }
, but foo.forEach({ it.call() })
is also a valid syntax, since you're passing the function as the 1 argument there