[Haskell-cafe] Infinite grid
David Menendez
dave at zednenem.com
Mon Dec 29 23:29:23 EST 2008
On Mon, Dec 29, 2008 at 9:29 PM, Dan Weston <westondan at imageworks.com> wrote:
> I'm confused how this isn't just tantamount to using Data.Map
> (Integer,Integer) a.
Data.Map.Map is strict in terms of structure. The number of elements
in the map must be known and less than (maxBound :: Int).
That being said, I'm not sure what something like Grid a would be good
for. Perhaps memoizing a function that took a list of moves as input.
--
Dave Menendez <dave at zednenem.com>
<http://www.eyrie.org/~zednenem/>
More information about the Haskell-Cafe
mailing list