Browse Source

[flash] add flash.Vector.insertAt/removeAt

Dan Korostelev 6 years ago
parent
commit
bfe0e22b67
1 changed files with 2 additions and 0 deletions
  1. 2 0
      std/flash/Vector.hx

+ 2 - 0
std/flash/Vector.hx

@@ -43,6 +43,8 @@ package flash;
 	function toString() : String;
 	function toString() : String;
 	function indexOf( x : T, ?from : Int ) : Int;
 	function indexOf( x : T, ?from : Int ) : Int;
 	function lastIndexOf( 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> {
 	public inline static function ofArray<T>( v : Array<T> ) : Vector<T> {
 		return untyped __vector__(v);
 		return untyped __vector__(v);