[Haskell] Litle problem with a haskell Function...

Manuel Costa costa at marcosta.com
Mon Nov 1 13:52:17 EST 2004


I' a Haskell Newbie and i need some help about a function..
My problem is to update a list of values in Runtime.
For example i have a initial list:

and a function:
add x =3D [list1] ++ [x]=20

I need to do=20
add "c"=20

and the "c" most be append to list1
to make list1=3D["a","c"]

Then if i input
the output must be

But i can't do it...
Could you help me ?!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org//pipermail/haskell/attachments/20041101/0aee2b64/attachment.htm

More information about the Haskell mailing list