[Haskell-beginners] Updating lists inside another list
Lee Duhem
lee.duhem at gmail.com
Tue Jun 23 03:19:50 EDT 2009
On Tue, Jun 23, 2009 at 11:29 AM, Joel Neely<joel.neely at gmail.com> wrote:
> WRT the first case, I would have expected something like;
>
> addToInnerList [] a b = [(a,[b])]
>
> on the assumption that one "grows" a structure from an empty state.
> Your thoughts?
>
I think it isn't what Aaron wants, that is "to add an element to the
inner list of
the pair with the head value of my choosing".
Anyway, it is an option.
lee
More information about the Beginners
mailing list