[Haskell-beginners] consing an element to a list inside a file

Daniel Fischer daniel.is.fischer at web.de
Thu Feb 18 18:41:56 EST 2010


Am Freitag 19 Februar 2010 00:25:18 schrieb kane96 at gmx.de:
> ok, now I did it by just calling from the original function by to a new
> one with an empty list at the beginning.
>
> How can I add the date at the end of the list? By creating a new list
> from the new date and using concat or is there a simpler way?
>

Better stick it to the front by (:) and reverse the list just before 
printing.


More information about the Beginners mailing list