This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.

Convert.Array

Module for working with arrays.

Currently provides a way of working between lists and arrays in a neater fasion.

nested2FromList : List (List a) -> Array (Array a)

Convert a list of lists into an array of arrays

module Convert.Array (nested2FromList) where
{-|
Module for working with arrays.

Currently provides a way of working between lists and arrays in a neater fasion.

@docs nested2FromList
-}

import Array exposing (Array)

{-|
  Convert a list of lists into an array of arrays
-}
nested2FromList : List (List a) -> Array (Array a)
nested2FromList nestedList = Array.fromList <| List.map (Array.fromList) nestedList