Problem xy
How to convert an array to a list in PureScript?
arrayToList :: forall a. Array a -> List a arrayToList = ???
Actual problem
Do I have to write this function?
None of purescript-arrays and purescript-lists defines such a function, which makes me wonder if there is an idiomatic way to work with arrays in the context of functions that accept a list.
For example, Matrix.getRow returns an array that must be converted to a list of Pux Html elements (in the process of rendering the matrix as HTML). What is the best way to do this?
arrays list purescript
Sridhar ratnakumar
source share