[Haskell-cafe] Lists of Lists
zell_ffhut at hotmail.com
Wed Mar 8 13:29:30 EST 2006
Im afraid im baffled again!
Im now trying to add a char to a string of strings (eg - ["434233434"
Im sure i can use my previous function to help me achive this, but i can't
seem to get it workinging
> charToGrid :: Char -> Position -> Grid -> Grid
> charToGrid c (row,col) g = concat g (changeValue c(row*9 + col))
Im not sure i should be using concat, as i have to return a grid as it was
given, just with the added char.
View this message in context: http://www.nabble.com/Lists-of-Lists-t1245394.html#a3305996
Sent from the Haskell - Haskell-Cafe forum at Nabble.com.
More information about the Haskell-Cafe