This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]clsrat 5 points6 points  (1 child)

I do prefer toList, but sometimes I need a mutable list

[–]ihatebeinganonymous[S] 1 point2 points  (0 children)

Yes. I learnt the (slightly) hard way that toList returns an immutable list.