[Haskell-beginners] First code review

Erik de Castro Lopo mle+hs at mega-nerd.com
Sun Feb 24 08:29:22 CET 2013


Brent Yorgey wrote:

> Since both the Grid and Heuristic values are created once and
> then used in a read-only fasion, this is a perfect opportunity to use
> arrays: see 
> 
>   http://hackage.haskell.org/packages/archive/array/latest/doc/html/Data-Array.html
> 
> Using read-only arrays is really quite simple (as opposed to
> read/write arrays which require a monad of some sort).

Brent, out of curiosity, why Array instead of Data.Vector?

Cheers,
Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/



More information about the Beginners mailing list