Join Slack
Powered by
That's before 1.9. Follow the suggestion. Put the ...
# android
k
kenkyee
07/22/2023, 8:53 PM
That's before 1.9. Follow the suggestion. Put the args in parentheses...
r
rkeazor
07/22/2023, 10:04 PM
Also this is List.forEach. not Map.forEach, in case your referring to destructureing . But what exactly where you referring to?
k
kenkyee
07/22/2023, 10:05 PM
Destructuring.... You're saying it doesn't work?
r
rkeazor
07/22/2023, 10:07 PM
like Map.forEach {.(x,y) ->... } works before the item entry can be destructured to Key and value... there is nothing to destructure in a List
rkeazor
07/22/2023, 10:08 PM
List<T>.forEach { t: T -> }
k
kenkyee
07/22/2023, 10:08 PM
Put the arg in parens
kenkyee
07/22/2023, 10:08 PM
(t)
r
rkeazor
07/22/2023, 10:08 PM
i dont think you can do that
2
Views
Open in Slack
Previous
Next