on master help sign in
Fixed some old *Map to indexedMap
b146491Christian Widera
libraries/Array.elm+1−1
@@ -17,7 +17,7 @@ into a list before operating on it, and then turning it back into an array.
17@docs toList, toIndexedList, indices, slice
17@docs toList, toIndexedList, indices, slice
18
18
19# Mapping, folding, zipping
19# Mapping, folding, zipping
20−@docs map, indexMap, foldl, foldr, zip, zipWith
20+@docs map, indexedMap, foldl, foldr, zip, zipWith
21-}
21-}
22
22
23import Native.Array
23import Native.Array
libraries/Native/Array.js+1−1
@@ -137,7 +137,7 @@ Elm.Native.Array.make = function(elm) {
137 var newA = { ctor:"_Array", height:a.height, table:new Array(a.table) };
137 var newA = { ctor:"_Array", height:a.height, table:new Array(a.table) };
138 if (a.height > 0) { newA.lengths = a.lengths; }
138 if (a.height > 0) { newA.lengths = a.lengths; }
139 for (var i = 0; i < a.table.length; i++) {
139 for (var i = 0; i < a.table.length; i++) {
140− newA.table[i] = a.height == 0 ? A2(f, i, a.table[i]) : assocMap(f, a.table[i]);
140+ newA.table[i] = a.height == 0 ? A2(f, i, a.table[i]) : indexedMap(f, a.table[i]);
141 }
141 }
142 return newA;
142 return newA;
143 }
143 }