on master help sign in
Fixed some old *Map to indexedMap
commitb1464916069ef1f76c63a790bccca2625ac3b1ee authorChristian Widera <xash@posteo.de> dateTue 1 Apr 2014, 00:41 (13 years ago) parent66bd1a4
2 files changed+2−2
libraries/Array.elm+1−1 libraries/Native/Array.js+1−1
libraries/Array.elm+1−1
@@ -17,7 +17,7 @@ into a list before operating on it, and then turning it back into an array.
1717@docs toList, toIndexedList, indices, slice
1818
1919# Mapping, folding, zipping
20−@docs map, indexMap, foldl, foldr, zip, zipWith
20+@docs map, indexedMap, foldl, foldr, zip, zipWith
2121-}
2222
2323import Native.Array
libraries/Native/Array.js+1−1
@@ -137,7 +137,7 @@ Elm.Native.Array.make = function(elm) {
137137 var newA = { ctor:"_Array", height:a.height, table:new Array(a.table) };
138138 if (a.height > 0) { newA.lengths = a.lengths; }
139139 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]);
141141 }
142142 return newA;
143143 }