[Haskell-cafe] Data.Foldable UArray

Dominic Steinitz dominic at steinitz.org
Sat Feb 22 19:15:22 UTC 2014

> Since all 'Foldable' functions factor through 'toList', you can't go too
> wrong by using '(foldableFunction . toList) myArray' wherever you would have
> wanted to use 'foldableFunction myArray'.

Isn't this going to be rather inefficient? Presumably the point of
using an array is to avoid using lists for an application where they
are not appropriate?

More information about the Haskell-Cafe mailing list