heap and walking through a very long list

Simon Peyton-Jones simonpj@microsoft.com
Mon, 26 Nov 2001 00:51:40 -0800


You can do it specifically for GHC, not not in standard Haskell (except
grossly inefficiently).
To see how to do it in GHC, look at the implementation in the source
code (ghc/lib/std),
which is online (check the "CVS repository" link on GHC's home page).

Meanwhile you could use the IArray stuff.

Simon

| -----Original Message-----
| From: Joe English [mailto:jenglish@flightlab.com]=20
| Sent: 25 November 2001 00:12
| To: haskell@haskell.org
| Subject: Re: heap and walking through a very long list
|=20
|=20
|=20
| Simon Peyton-Jones wrote:
|=20
| > There should really be a strict accumArray, just as there=20
| should be a=20
| > strict foldl.
|=20
| Yes, please!
|=20
| Is there a way to write a strict version of accumArray in=20
| Haskell 98, or does this need to be done by the implementation?
|=20
|=20
| --Joe English
|=20
|   jenglish@flightlab.com
|=20
| _______________________________________________
| Haskell mailing list
| Haskell@haskell.org http://www.haskell.org/mailman/listinfo/haskell
|=20