/// var a_bool: Vector.<Boolean> = new <Boolean>[true, false];
/// var b_bool: Vector.<Boolean> = new <Boolean>[false, true, false];
/// var c_bool: Vector.<Boolean> = new <Boolean>[];
/// a_bool.shift();
true
/// a_bool.shift();
false
/// a_bool.shift();
undefined
/// a_bool.unshift(0, "true", -1, 3.5, "false", false, true);
7
/// (contents of a_bool...)
7 elements
false
true
true
true
true
false
true
/// b_bool.unshift(0, "true", -1, 3.5, "false", false, true);
10
/// (contents of b_bool...)
10 elements
false
true
true
true
true
false
true
false
true
false
/// c_bool.unshift();
0
/// (contents of c_bool...)
0 elements
/// c_bool.unshift(false);
1
/// (contents of c_bool...)
1 elements
false
/// var a0_class = new Superclass();
/// var a1_class = new Subclass();
/// var a_class: Vector.<Superclass> = new <Superclass>[a0_class, a1_class];
/// var b_class: Vector.<Subclass> = new <Subclass>[];
/// b_class.length = 1;
/// b_class[0] = new Subclass();
/// a_class.shift();
[object Superclass]
/// a_class.shift();
[object Subclass]
/// a_class.shift();
undefined
/// a_class.unshift(a1_class, a0_class, a0_class, a1_class);
4
/// a_class[0] === a_class[3];
true
/// a_class[1] === a_class[2];
true
/// (contents of a_class...)
4 elements
[object Subclass]
[object Superclass]
[object Superclass]
[object Subclass]
/// b_class.unshift(new Subclass());
2
/// (contents of b_class...)
2 elements
[object Subclass]
[object Subclass]
/// var a_int: Vector.<int> = new <int>[1,2];
/// var b_int: Vector.<int> = new <int>[5,16];
/// a_int.shift();
1
/// a_int.unshift(5);
2
/// (contents of a_int)...
2 elements
5
2
/// a_int.shift();
5
/// a_int.shift();
2
/// a_int.unshift(-15, 32, true, false, "63");
5
/// (contents of a_int)...
5 elements
-15
32
1
0
63
/// b_int.shift();
5
/// b_int.shift();
16
/// b_int.shift();
0
/// var a_number: Vector.<Number> = new <Number>[1,2,3,4];
/// var b_number: Vector.<Number> = new <Number>[5, NaN, -5, 0];
/// a_number.shift();
1
/// a_number.shift();
2
/// a_number.unshift(-16, 3.2, 5, "test", true, false);
8
/// (contents of a_number...)
8 elements
-16
3.2
5
NaN
1
0
3
4
/// b_number.shift();
5
/// b_number.shift();
NaN
/// b_number.unshift(NaN, "NaN", 0);
5
/// (contents of b_number...)
5 elements
NaN
NaN
0
-5
0
/// var a_string: Vector.<String> = new <String>["a","c","d","f"];
/// var b_string: Vector.<String> = new <String>["986","B4","Q","rrr"];
/// a_string.shift();
a
/// a_string.shift();
c
/// a_string.shift();
d
/// a_string.shift();
f
/// a_string.shift();
undefined
/// a_string.unshift(123, {}, "abc", true, false);
5
/// (contents of a_string...)
5 elements
123
[object Object]
abc
true
false
/// b_string.shift();
986
/// b_string.unshift(NaN, -83.5);
5
/// (contents of b_string...)
5 elements
NaN
-83.5
B4
Q
rrr
/// var a_uint: Vector.<uint> = new <uint>[1,2];
/// var b_uint: Vector.<uint> = new <uint>[5,16];
/// a_uint.shift();
1
/// a_uint.shift();
2
/// a_uint.shift();
0
/// a_uint.unshift(0, -1, -2.5, "16", "NaN");
5
/// (contents of a_uint...)
5 elements
0
4294967295
4294967294
16
0
/// b_uint.shift();
5
/// b_uint.unshift(true, 15.23, "true");
4
/// (contents of b_uint...)
4 elements
1
15
0
16
/// var a_vector:Vector.<Vector.<int>> = new <Vector.<int>>[new <int>[1,2], new <int>[4,3]];
/// var b_vector:Vector.<Vector.<int>> = new <Vector.<int>>[new <int>[5,16], new <int>[19,8]];
/// (contents of a_vector.shift()...)
2 elements
1
2
/// (contents of a_vector.shift()...)
2 elements
4
3
/// a_vector.shift();
undefined
/// a_vector.unshift(new <int>[15,9], new <int>[-1,-94], new <int>[2], new <int>[16]);
4
/// (contents of a_vector...)
4 elements
/// (contents of index 0 )
2 elements
15
9
/// (contents of index 1 )
2 elements
-1
-94
/// (contents of index 2 )
1 elements
2
/// (contents of index 3 )
1 elements
16
/// (contents of b_vector.shift()...)
2 elements
5
16
/// b_vector.unshift(new <int>[-1,-94]);
2
/// (contents of b_vector...)
2 elements
/// (contents of index 0 )
2 elements
-16
-4
/// (contents of index 1 )
2 elements
19
8
/// b_vector.length = 6;
6
/// b_vector.shift()
-16,-4
/// (contents of b_vector...)
5 elements
/// (contents of index 0 )
2 elements
19
8
null
null
null
null
