Selaa lähdekoodia

[flash] add flash.Vector.insertAt/removeAt

Dan Korostelev 6 vuotta sitten
vanhempi
commit
bfe0e22b67
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      std/flash/Vector.hx

+ 2 - 0
std/flash/Vector.hx

@@ -43,6 +43,8 @@ package flash;
 	function toString() : String;
 	function indexOf( x : T, ?from : Int ) : Int;
 	function lastIndexOf( x : T, ?from : Int ) : Int;
+	@:require(flash19) function insertAt(index : Int, element : T) : Void;
+	@:require(flash19) function removeAt(index:Int) : T;
 
 	public inline static function ofArray<T>( v : Array<T> ) : Vector<T> {
 		return untyped __vector__(v);