W3cubDocs

/Haxe Flash

Vector<T>

package flash

@:require(flash10) Available on flash

The Vector class is very similar to Array but is only supported by the Flash Player 10+

Constructor

new (?length:UInt, ?fixed:Bool)

Variables

fixed:Bool

length:Int

Methods

concat (?a:Vector<T>):Vector<T>

indexOf (x:T, ?from:Int):Int

join (sep:String):String

lastIndexOf (x:T, ?from:Int):Int

pop ():Null<T>

push (x:T ):Int

reverse ():Void

shift ():Null<T>

slice (?pos:Int, ?end:Int):Vector<T>

sort (f:T ‑> T ‑> Int):Void

splice (pos:Int, len:Int):Vector<T>

toString ():String

unshift (x:T ):Void

Static methods

@:has_untyped static inline convert<T, U> (v:Vector<T>):Vector<U>

@:has_untyped static inline ofArray<T> (v:Array<T>):Vector<T>

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/flash/Vector.html