The only possible non-obvious thing that I can think of is that array.toIndexedSeq does not create a simple wrapper on top of the array itself, as the Java Collections.unmodifiable* methods do, but copies the elements to a new collection. (Otherwise, subsequent changes to the array may cause the "immutable" sequence to mutate suddenly.)
source share