W3cubDocs

/Haxe Flash

Vector<T>

package flash

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

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

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

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