unmodifiable

inline fun <T> List<T>.unmodifiable(): List<T>

Returns an unmodifiable version of a list.


inline fun <T> Set<T>.unmodifiable(): Set<T>

Returns an unmodifiable version of a set.