
24 Feb
2013
24 Feb
'13
9:31 a.m.
On Sun, Feb 24, 2013 at 06:29:22PM +1100, Erik de Castro Lopo wrote:
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...
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?
No reason other than that I'm more familiar with Array. Upon inspection of Data.Vector it looks like that would indeed be a better choice. -Brent