View source
abstract ReadOnlyArray<T>(Array<T>)
package haxe.ds
from Array<T>
Available on all platforms
ReadOnlyArray is an abstract over an ordinary Array but only exposes API's that don't modify the Array instance, hence read-only. Notice that this doesn't necessarily mean that the instance is immutable. Because other code holding the reference as ordinary Array can still modify it.