readOnlyListOf

fun <T> readOnlyListOf(vararg elements: T): PersistentList<T>

Returns a new read-only list of the specified elements.


fun <T> readOnlyListOf(): PersistentList<T>

Returns an empty read-only list.