Join Slack
Powered by
Is there anything shorter than `Collections.unmodi...
# stdlib
m
miha-x64
06/23/2017, 10:04 AM
Is there anything shorter than
Collections.unmodifiableList(someArray.toList())
?
l
louiscad
06/25/2017, 9:13 AM
miha-x64: Kotlin's `toList()`already returns a non mutable list.
m
mg6maciej
06/25/2017, 1:51 PM
@louiscad
Not really. You can modify a list returned from
toList
in Java.
6
Views
Open in Slack
Previous
Next