Yes, it doesn't do anything yet (apart from update a currently discarded
accumulator (symbol table)).
-Original Message-
From: Ryan Ingram [mailto:[EMAIL PROTECTED]
Sent: 09 October 2008 09:06
To: Paul Keir
Cc: haskell-cafe@haskell.org
Subject: Re: [Haskell-cafe] Simple Table Updat
On Wed, Oct 8, 2008 at 9:12 PM, Paul Keir <[EMAIL PROTECTED]> wrote:
> It brings tears to my eyes to see such a beautiful function ;) You've hit
> the nail on the head Ryan. The new version of my second previous code
> snippet now no longer requires "fixpu*", and is:
>
> typeCheckAST (Program pus)
++ [("",[])],pu)
Many thanks,
Paul
-Original Message-
From: Ryan Ingram [mailto:[EMAIL PROTECTED]
Sent: Wed 08/10/2008 18:03
To: Paul Keir
Cc: haskell-cafe@haskell.org
Subject: Re: [Haskell-cafe] Simple Table Update
Prelude> :t Data.List.mapAccumL
Data.List.mapAccumL :: (
Prelude> :t Data.List.mapAccumL
Data.List.mapAccumL :: (acc -> x -> (acc, y)) -> acc -> [x] -> (acc, [y])
I'm sure you can fill in the details :)
-- ryan
2008/10/8 Paul Keir <[EMAIL PROTECTED]>:
> Hi,
>
> I'd like to create a new list based on an original list, using information
> from a secon