Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

Commit

Permalink
fix indexedMap by replacing base with from
Browse files Browse the repository at this point in the history
  • Loading branch information
eeue56 committed Sep 4, 2015
1 parent 52e1b53 commit c2e7ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Native/Array.js
Expand Up @@ -371,7 +371,7 @@ Elm.Native.Array.make = function(localRuntime) {
newA.table[i] =
a.height === 0
? A2(f, from + i, a.table[i])
: indexedMap_(f, a.table[i], i === 0 ? 0 : a.lengths[i - 1]);
: indexedMap_(f, a.table[i], i == 0 ? from : from + a.lengths[i - 1]);
}
return newA;
}
Expand Down

0 comments on commit c2e7ba6

Please sign in to comment.