[Haskell-cafe] Lists of Lists

zell_ffhut zell_ffhut at hotmail.com
Thu Mar 9 02:06:17 EST 2006

Last attempt, as its due in a couple of hours

Here's what i have so far..

> charToGrid :: Char -> Position -> Grid -> Grid
> charToGrid c [] (row,col) xs = xs
> charToGrid c (row,col) xs = (changeValue c (concat xs (row*9 + col)))

Using changeValue - 

changeValue x 0 (y:ys) = (x:ys) 
changeValue x n (y:ys) = y:(changeValue x (n-1) ys)

Would really appritiate any help
View this message in context: http://www.nabble.com/Lists-of-Lists-t1245394.html#a3315187
Sent from the Haskell - Haskell-Cafe forum at Nabble.com.

More information about the Haskell-Cafe mailing list