@@ -16,9 +16,9 @@ Elm.Native.Array.make = function(elm) {
1616 // M is the maximal node size. 32 seems fast. E is the allowed increase
1717 // of search steps when concatting to find an index. Lower values will
1818 // decrease balancing, but will increase search steps.
19− var M = 32;
19+ var M = 32;
2020 var E = 2;
21−
21+
2222 // An empty array.
2323 var empty = { ctor:"_Array", _0:0, _1:new Array() };
2424
@@ -31,12 +31,12 @@ Elm.Native.Array.make = function(elm) {
3131 throw new Error("Index "+ i +" on the array is out of range. Check the length first or you safeGet.");
3232 }
3333 }
34−
34+
3535 var slot = getSlot(i, a);
3636 var sub = slot > 0 ? a._2[slot-1] : 0;
3737 return get(i - sub, a._1[slot]);
38− }
39−
38+ }
39+
4040 // Sets the value at the index i. Only the nodes leading to i will get
4141 // copied and updated.
4242 function set(i, item, a) {
@@ -81,7 +81,7 @@ Elm.Native.Array.make = function(elm) {
8181 return null;
8282 }
8383 }
84−
84+
8585 // Recursively push
8686 var pushed = push_(item, botRight(a));
8787
@@ -124,7 +124,7 @@ Elm.Native.Array.make = function(elm) {
124124 function map(f, a) {
125125 var newA = { ctor:"_Array", _0:a._0, _1:new Array(a._1) };
126126 if (a._0 > 0) { newA._2 = a._2; }
127− for (var i = 0; i < a._1.length; i++) {
127+ for (var i = 0; i < a._1.length; i++) {
128128 newA._1[i] = a._0 == 0 ? f(a._1[i]) : map(f, a._1[i]);
129129 }
130130 return newA;
@@ -156,7 +156,7 @@ Elm.Native.Array.make = function(elm) {
156156 // Returns a sliced tree. The to is inclusive, but this may change,
157157 // when I understand, why e.g. JS does not handle it this way. :-)
158158 // If from or to is negative, they will select from the end on.
159− // TODO: currently, it slices the right, then the left. This can be
159+ // TODO: currently, it slices the right, then the left. This can be
160160 // optimized.
161161 function slice(from, to, a) {
162162 if (from < 0) { from += length(a); }
@@ -184,7 +184,7 @@ Elm.Native.Array.make = function(elm) {
184184 if (right == 0) {
185185 return sliced;
186186 }
187−
187+
188188 // Create new node.
189189 var newA = { ctor:"_Array", _0:a._0
190190 , _1:a._1.slice(0, right + 1)
@@ -219,7 +219,7 @@ Elm.Native.Array.make = function(elm) {
219219 var newA = { ctor:"_Array", _0:a._0
220220 , _1:a._1.slice(left, a._1.length + 1)
221221 , _2:new Array(a._1.length - left) };
222− newA._1[left] = sliced;
222+ newA._1[left] = sliced;
223223 var len = 0;
224224 for (var i = 0; i < newA._1.length; i++) {
225225 len += length(newA._1[i]);
@@ -258,7 +258,7 @@ Elm.Native.Array.make = function(elm) {
258258
259259 return shuffle(a, b, toRemove);
260260 }
261−
261+
262262 var concated = concat_(botRight(a), botLeft(b));
263263 a = nodeCopy(a), b = nodeCopy(b);
264264
@@ -302,9 +302,9 @@ Elm.Native.Array.make = function(elm) {
302302 subLengths += b._1[i]._1.length;
303303 }
304304
305− var toRemove = a._1.length + b._1.length
305+ var toRemove = a._1.length + b._1.length
306306 return toRemove - (Math.floor((subLengths - 1) / M) + 1);
307− }
307+ }
308308
309309 // get2 and set2 are helpers for accessing over two arrays.
310310 function get2(a, b, index) {
@@ -333,7 +333,7 @@ Elm.Native.Array.make = function(elm) {
333333 function saveSlot(a, b, index, slot) {
334334 set2(a._1, b._1, index, slot);
335335
336− var l = (index == 0 || index == a._2.length) ?
336+ var l = (index == 0 || index == a._2.length) ?
337337 0 : get2(a._2, a._2, index - 1);
338338 set2(a._2, b._2, index, l + length(slot));
339339 }
@@ -384,12 +384,12 @@ Elm.Native.Array.make = function(elm) {
384384 }
385385
386386 // Only create a new slot if the current one is filled up.
387− if (slot._1.length == M) {
387+ if (slot._1.length == M) {
388388 saveSlot(newA, newB, write, slot);
389389 slot = createNode(a._0 - 1,0);
390390 write++;
391391 }
392− }
392+ }
393393
394394 // Cleanup after the loop. Copy the last slot into the new nodes.
395395 if (slot._1.length > 0) {
@@ -398,7 +398,7 @@ Elm.Native.Array.make = function(elm) {
398398 }
399399
400400 // Shift the untouched slots to the left
401− while (read < a._1.length + b._1.length ) {
401+ while (read < a._1.length + b._1.length ) {
402402 saveSlot(newA, newB, write, get2(a._1, b._1, read));
403403 read++; write++;
404404 }
@@ -486,5 +486,3 @@ Elm.Native.Array.make = function(elm) {
486486
487487 return elm.Native.Array.values = Elm.Native.Array.values;
488488}
489−
490−