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.

Variables

@:implread onlylength:Int