Search code examples
arrayshaskellmodulestrict

How use DiffArray in Haskell? How make more strict this code?


I try use Data.Array code It's ok, but slow.

Then use Data.Array.Diff
code

Could not find module `Data.Array.Diff'

If I use Data.Array.Unboxed, than not found DiffArray or DiffUArray constructor.

How I can use DiffArray and DiffUArray?

DiffUArray more performance optimized, than DiffArray?

How I can make code less laziness (more strict)?

I don't want use IOArray or STArray, because learning. I should use only IArray and some other not monadic arrays, if it exist.


Solution

  • How about using vector?

    DiffArray is obsolete.