[Haskell-cafe] Lists of Lists

Udo Stenzel u.stenzel at web.de
Wed Mar 8 14:13:19 EST 2006

zell_ffhut wrote:
> Imagine the strings are set out in a 9x9 grid type way, and i have to find
> the value of a set position given 2 gird values.
> > getCharFromGrid (row,col) g = concat g !!(row * 9) + col

This isn't by chance evolving into the world's ugliest sudoku solver?
Are you sure, you don't want to use a FiniteMap?

Slous' Contention:
        If you do a job too well, you'll get stuck with it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://www.haskell.org//pipermail/haskell-cafe/attachments/20060308/dc38930f/attachment-0001.bin

More information about the Haskell-Cafe mailing list