[Haskell-cafe] Arrays in Clean and Haskell
phi500ac at yahoo.ca
Wed Nov 4 05:48:17 EST 2009
> However if I had to guess, it seems to me that you want to read the
> a list and then find some ST function which can initialize an
array using a list (maybe ?)
It is the other way around. I want to avoit lists. I would like to read the array elements from a file, and store then directly into the array. This approach would spare me from writing using a possibly expensive heap hungry intermediate structure.
--- On Tue, 11/3/09, brian <briand at aracnet.com> wrote:
From: brian <briand at aracnet.com>
Subject: Re: [Haskell-cafe] Arrays in Clean and Haskell
To: "Philippos Apolinarius" <phi500ac at yahoo.ca>
Cc: haskell-cafe at haskell.org
Received: Tuesday, November 3, 2009, 9:34 PM
On Nov 3, 2009, at 7:38 PM, Philippos Apolinarius wrote:
> Brian wrote:
> > Really, arrays in Haskell are the most @#!$! confusing thing in the world.
> Hi, Brian.
> I am having a great difficulty with arrays in Haskell. In the university where I study, functional programming is taught in Clean or in
me too :-)
> And here comes the reason for writing this article. In the previous version of the Gauss elimination algorithm, I have imported
you're asking me ?? I have no idea. I can't even figure out which package to use.
However if I had to guess, it seems to me that you want to read the data into a list and then find some ST function which can initialize an array using a list (maybe ?)
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe