but this is fine? ``` foos.forEach { bar = it } `...
# announcements
b
but this is fine?
Copy code
foos.forEach { bar = it }
Doesn’t the block
forEach
takes return
Unit
? And doesn’t the last line of a block count as its return value? The Kotlin compiler knows what I mean in this case, and so doesn’t bug me about not returning
Unit
, but for some reason up there it cares?