
8 Mar
2006
8 Mar
'06
12:53 p.m.
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.