<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Let me see whether I understoodnd you correctly... If I read the contents of a file, the string will may be lazy (or something like that) and not consume memory? In fewer words, will the string behave like the infinite list of random numbers that I have used in the examples I posted?<br><br><br><br>--- On <b>Wed, 11/4/09, Jason Dusek <i><jason.dusek@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Jason Dusek <jason.dusek@gmail.com><br>Subject: Re: [Haskell-cafe] Arrays in Clean and Haskell<br>To: "Philippos Apolinarius" <phi500ac@yahoo.ca><br>Cc: haskell-cafe@haskell.org<br>Received: Wednesday, November 4, 2009, 2:22 PM<br><br><div class="plainMail">2009/11/4 Philippos Apolinarius <<a ymailto="mailto:phi500ac@yahoo.ca"
href="/mc/compose?to=phi500ac@yahoo.ca">phi500ac@yahoo.ca</a>><br>> Jason Dusek wrote:<br>> > How do you read in the IOUArray? By parsing a character<br>> > string or do you treat the file as binary numbers or ... ?<br>><br>> I always pare the file. Parsing the file has the advantage of<br>> alowing me to have files of any format.<br><br> From this description, it's hard for me to see what is hard<br> for you. When you "parse the file" I imagine you in face<br> "parse a String" or "parse a lazy ByteString" (a much better<br> idea). Take that `String` or `ByteString` and pass it to an<br> `ST` computation that parses it to make an `ST` array and then<br> operates on the array.<br><br>--<br>Jason Dusek<br></div></blockquote></td></tr></table><br>
<hr size=1>Reclaim your name <strong>@ymail.com </strong>or <strong>@rocketmail.com</strong>.
<a href="http://ca.promos.yahoo.com/jacko/">Get your new email address now</a>!