[Haskell-cafe] Arrays in Clean and Haskell
Philippos Apolinarius
phi500ac at yahoo.ca
Wed Nov 4 05:57:41 EST 2009
Jason Dusek wrote:
> How do you read in the IOUArray? By parsing a character string
> or do you treat the file as binary numbers or ... ?
I always pare the file. Parsing the file has the advantage of alowing me to have files of any format. In general, in homeworks, TA generate files using different tools. For instance, a professor of electrical protection of hardware made a lot of measurements of transient currents due to lightning. The file has thousands of three column lines, each one containing time, voltage and current. Students are supposed to read the file, and plot voltage and current time series. Even the numbers are in a strange format... So, one needs to parse the file.
--- On Tue, 11/3/09, Jason Dusek <jason.dusek at gmail.com> wrote:
From: Jason Dusek <jason.dusek at gmail.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:31 PM
How do you read in the IOUArray? By parsing a character string
or do you treat the file as binary numbers or ... ?
--
Jason Dusek
__________________________________________________________________
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your favourite sites. Download it now
http://ca.toolbar.yahoo.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20091104/e1e3ffea/attachment.html
More information about the Haskell-Cafe
mailing list