| 1 |
Files to build: 5 |
| 2 |
symbol_export _main.t -> _main.t3s |
| 3 |
symbol_export listprop.t -> listprop.t3s |
| 4 |
compile _main.t -> _main.t3o |
| 5 |
compile listprop.t -> listprop.t3o |
| 6 |
link -> listprop.t3 |
| 7 |
|
| 8 |
(T3VM) Memory blocks still in use: |
| 9 |
|
| 10 |
Total blocks in use: 0 |
| 11 |
length([1,2,3])=3 |
| 12 |
lst=[1, 2, 3, 4, 5, 6, 7, 8]: |
| 13 |
sublist(2, 3) = [2, 3, 4] |
| 14 |
sublist(6, 10) = [6, 7, 8] |
| 15 |
sublist(7) = [7, 8] |
| 16 |
sublist(-4, 2) = [5, 6] |
| 17 |
sublist(-3) = [6, 7, 8] |
| 18 |
sublist(1, -1) = [1, 2, 3, 4, 5, 6, 7] |
| 19 |
sublist(2, -2) = [2, 3, 4, 5, 6] |
| 20 |
sublist(2, -1) = [2, 3, 4, 5, 6, 7] |
| 21 |
sublist(2, -2) = [2, 3, 4, 5, 6] |
| 22 |
sublist(2, -5) = [2, 3] |
| 23 |
sublist(5, -5) = [] |
| 24 |
sublist(6, -6) = [] |
| 25 |
sublist(12, -2) = [] |
| 26 |
sublist(2, -12) = [] |
| 27 |
sublist(1, -9) = [] |
| 28 |
sublist(1, -8) = [] |
| 29 |
sublist(1, -7) = [1] |
| 30 |
sublist(1, -6) = [1, 2] |
| 31 |
|
| 32 |
[1, 2, 3, 4, 5, 6], keep>3 = [4, 5, 6] |
| 33 |
lst = [6, 5, 4, 3, 2, 1], keep>3 = [6, 5, 4] |
| 34 |
lst = [6, 5, 4, 3, 2, 1, 9, 0, 10, -1, 11, -2], keep>3 = [6, 5, 4, 9, 10, 11] |
| 35 |
lst = [6, 5, 4, 3, 2, 1, 9, 0, 10, -1, 11, -2], *100 = [600, 500, 400, 300, |
| 36 |
200, 100, 900, 0, 1000, -100, 1100, -200] |
| 37 |
|
| 38 |
Concatenating list to itself: [6, 5, 4, 3, 2, 1, 9, 0, 10, -1, 11, -2, 6, 5, 4, |
| 39 |
3, 2, 1, 9, 0, 10, -1, 11, -2] |
| 40 |
|
| 41 |
forEach: 6; 5; 4; 3; 2; 1; 9; 0; 10; -1; 11; -2; 6; 5; 4; 3; 2; 1; 9; 0; 10; - |
| 42 |
1; 11; -2; |
| 43 |
|
| 44 |
indexOf 6: 1 |
| 45 |
indexOf -2: 12 |
| 46 |
indexOf 9: 7 |
| 47 |
indexOf 123: |
| 48 |
|
| 49 |
indexWhich x > 0: 1 |
| 50 |
indexWhich x > 7: 7 |
| 51 |
indexWhich x < 0: 10 |
| 52 |
indexWhich x > 1000: |
| 53 |
|
| 54 |
valWhich x > 0: 6 |
| 55 |
valWhich x > 7: 9 |
| 56 |
valWhich x < 0: -1 |
| 57 |
valWhich x < 4: 3 |
| 58 |
valWhich x > 2000: |
| 59 |
|
| 60 |
lastIndexOf 6: 13 |
| 61 |
lastIndexOf -2: 24 |
| 62 |
lastIndexOf 9: 19 |
| 63 |
lastIndexOf 123: |
| 64 |
|
| 65 |
lastIndexWhich x > 0: 23 |
| 66 |
lastIndexWhich x < 0: 24 |
| 67 |
lastIndexWhich x > 10: 23 |
| 68 |
lastIndexWhich x > 2000: |
| 69 |
|
| 70 |
lastValWhich x > 0: 11 |
| 71 |
lastValWhich x < 0: -2 |
| 72 |
lastValWhich x > 500: |
| 73 |
lastValWhich x > 2000: |
| 74 |
|
| 75 |
countOf 6: 2 |
| 76 |
countOf 5: 2 |
| 77 |
countOf -2: 2 |
| 78 |
countOf 123: 0 |
| 79 |
|
| 80 |
countWhich x > 0: 18 |
| 81 |
countWhich x > 2000: 0 |
| 82 |
countWhich x < 2000: 24 |
| 83 |
|
| 84 |
getUnique: [6, 5, 4, 3, 2, 1, 9, 0, 10, -1, 11, -2] |
| 85 |
getUnique [5, 1, 5, 2, 5, 5, 2, 7]: [5, 1, 2, 7] |
| 86 |
|
| 87 |
appendUnique: [1, 2, 3, 4, 5, 6, 8, 10, 12] |
| 88 |
appendUnique: [1, 2, 3, 4, 5, 6, 7] |
| 89 |
appendUnique: [1, 2, 3, 4, 5, 6] |
| 90 |
appendUnique: [1, 2, 3, 4, 5, 6, 9, 11] |
| 91 |
|
| 92 |
append 77: [1, 2, 3, 4, 5, 6, 77] |
| 93 |
append [11,22,33]: [1, 2, 3, 4, 5, 6, [11, 22, 33]] |
| 94 |
|
| 95 |
sort: [1, 3, 5, 6, 7, 8, 9, 11, 17, 20] |
| 96 |
sort descending: [20, 17, 11, 9, 8, 7, 6, 5, 3, 1] |
| 97 |
sort in string ordering: [1, 11, 17, 20, 3, 5, 6, 7, 8, 9] |
| 98 |
|
| 99 |
prepend: [99, 88, 77, 1, 2, 3, 4, 5] |
| 100 |
|
| 101 |
insert1: [1, 2, 3, 10, 20, 30, 40, 50] |
| 102 |
insert2: [1, 2, 3, 10, 20, 30, 40, 50, 44, 55, 66] |
| 103 |
insert3: [1, 2, 3, 10, 777, 888, 999, 20, 30, 40, 50, 44, 55, 66] |
| 104 |
insert4: [1, 2, 3, 10, 777, 888, 999, 20, 30, 40, 50, 44, 1234, 5678, 55, 66] |
| 105 |
undid insert4: [1, 2, 3, 10, 777, 888, 999, 20, 30, 40, 50, 44, 55, 66] |
| 106 |
|
| 107 |
removeAt(6): [1, 2, 3, 10, 777, 999, 20, 30, 40, 50, 44, 55, 66] |
| 108 |
removeAt(1): [2, 3, 10, 777, 999, 20, 30, 40, 50, 44, 55, 66] |
| 109 |
removeAt(length): [2, 3, 10, 777, 999, 20, 30, 40, 50, 44, 55] |
| 110 |
removeAt(-2): [2, 3, 10, 777, 999, 20, 30, 40, 50, 55] |
| 111 |
undid removeAt(-2): [2, 3, 10, 777, 999, 20, 30, 40, 50, 44, 55] |
| 112 |
|
| 113 |
removeRange(3, 7): [2, 3, 40, 50, 44, 55] |
| 114 |
removeRange(1, 2): [40, 50, 44, 55] |
| 115 |
removeRange(length-1, length): [40, 50] |
| 116 |
removeRange(-3, -2): [10, 20, 30, 40, 50, 60, 70, 100] |
| 117 |
|
| 118 |
x=[a, b, c, d, e, f, g, h, i, j]: |
| 119 |
splice(3, 2, 'x', 'y')=[a, b, x, y, e, f, g, h, i, j] |
| 120 |
splice(3, 5, 'x', 'y')=[a, b, x, y, h, i, j] |
| 121 |
splice(7, 10, 'x', 'y')=[a, b, c, d, e, f, x, y] |
| 122 |
splice(0, 5, 'x', 'y')=[a, b, c, d, e, f, g, h, i, j, x, y] |
| 123 |
splice(-2, 0, 'x', 'y')=[a, b, c, d, e, f, g, h, x, y, i, j] |
| 124 |
|
| 125 |
'goodbye', len = 7 |
| 126 |
str = 'hello', len = 5 |
| 127 |
str = 'hello!!!', len = 8 |
| 128 |
'goodbye', substr(5) = bye |
| 129 |
'goodbye', substr(4, 2) = db |
| 130 |
str = 'hello there', substr(5) = o there |
| 131 |
str = 'hello there', substr(4, 2) = lo |
| 132 |
str = 'hello there!!!', substr(5) = o there!!! |
| 133 |
str = 'hello there!!!', substr(4, 2) = lo |
| 134 |
|
| 135 |
(T3VM) Memory blocks still in use: |
| 136 |
|
| 137 |
Total blocks in use: 0 |