|
@@ -132,15 +132,13 @@ class ArrayImpl {
|
|
}
|
|
}
|
|
|
|
|
|
public static inline function insert<T>(a:Array<T>, pos : Int, x : T ) : Void {
|
|
public static inline function insert<T>(a:Array<T>, pos : Int, x : T ) : Void {
|
|
- return Syntax.callField(a, "insert", pos, x);
|
|
|
|
-
|
|
|
|
|
|
+ Syntax.callField(a, "insert", pos, x);
|
|
}
|
|
}
|
|
|
|
+
|
|
public static inline function reverse<T>(a:Array<T>) : Void {
|
|
public static inline function reverse<T>(a:Array<T>) : Void {
|
|
- return Syntax.callField(a, "reverse");
|
|
|
|
|
|
+ Syntax.callField(a, "reverse");
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
@:keep private static inline function __get<T>(x:Array<T>, idx:Int):T
|
|
@:keep private static inline function __get<T>(x:Array<T>, idx:Int):T
|
|
{
|
|
{
|
|
return if (idx < x.length && idx > -1) Syntax.arrayAccess(x, idx) else null;
|
|
return if (idx < x.length && idx > -1) Syntax.arrayAccess(x, idx) else null;
|