krisajenkins / elm-exts / Exts.Array

Extensions to the core Array library.

update : Basics.Int -> (a -> a) -> Array a -> Array a

'Update' the entry at position n, by applying f to it. If the index is out of range, the array is unaltered.

delete : Basics.Int -> Array a -> Array a

'Delete' the entry at position n. index is out of range, the array is unaltered.

unzip : Array ( a, b ) -> ( Array a, Array b )

Split an array of pairs into a pair of arrays.

The same as the core List.unzip.

singleton : a -> Array a

Wrap a single item into an Array.