[Haskell-cafe] Lists of Lists
zell_ffhut
zell_ffhut at hotmail.com
Wed Mar 8 07:53:49 EST 2006
I've tried using the Concat and ++ functions, but to no avail so far.
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
The decleration is
> getCharFromGrid :: Position -> Grid -> Char
Any ideas why its not working?
--
View this message in context: http://www.nabble.com/Lists-of-Lists-t1245394.html#a3299686
Sent from the Haskell - Haskell-Cafe forum at Nabble.com.
More information about the Haskell-Cafe
mailing list