[Haskell-cafe] Lists of Lists
zell_ffhut
zell_ffhut at hotmail.com
Wed Mar 8 09:21:01 EST 2006
Thank you, It's working as planed now
Trying to do a function now that changes the value of an element of the
list. In programming languages i've used in the past, this would be done
somthing like -
> changeValue x i [xs] = [xs] !! i = x
where x is the value to change to, i is the index of the value to change,
and [xs] is the list.
This however, dosen't work in Haskell. How would this be done in Haskell?
--
View this message in context: http://www.nabble.com/Lists-of-Lists-t1245394.html#a3301147
Sent from the Haskell - Haskell-Cafe forum at Nabble.com.
More information about the Haskell-Cafe
mailing list