on master help sign in
Fix get function names
66bd1a4Christian Widera
libraries/Array.elm+1−1
@@ -8,7 +8,7 @@ If you use more then one map or zip function on an array, consider turning it
8into a list before operating on it, and then turning it back into an array.
8into a list before operating on it, and then turning it back into an array.
9
9
10# Basics
10# Basics
11−@docs empty, length, get, safeGet, getWithDefault
11+@docs empty, length, get, getMaybe, getSafe
12
12
13# Putting Arrays Together
13# Putting Arrays Together
14@docs fill, fromList, concat, set, updates, push
14@docs fill, fromList, concat, set, updates, push
libraries/Native/Array.js+1−1
@@ -30,7 +30,7 @@ Elm.Native.Array.make = function(elm) {
30 if (i < a.table.length) {
30 if (i < a.table.length) {
31 return a.table[i];
31 return a.table[i];
32 } else {
32 } else {
33− throw new Error("Index "+ i +" on the array is out of range. Check the length first or you safeGet.");
33+ throw new Error("Index "+ i +" is out of range. Check the length of your array first or use getSafe or getMaybe.");
34 }
34 }
35 }
35 }
36
36