toList

Returns an unmodifiable view of the underlying list. Changes to the original list are visible in the returned view.

Return

an unmodifiable list view