Newsgroups: fa.haskell
From: Bulat Ziganshin <bulat.zigans...@gmail.com>
Date: Mon, 02 Oct 2006 10:02:24 UTC
Local: Mon, Oct 2 2006 6:02 am
Subject: Re: [Haskell-cafe] How would you replace a field in a CSV file?
Hello tpledger,
Monday, October 2, 2006, 3:11:29 AM, you wrote: > For such a small self-contained task, I don't think Haskell i disagree. while it's hard to beat Python version in number of lines, > is any better than Python. Haskell version may have the same length and better performance. for this particular task, using list as intermediate datastructure main = B.interact $ B.unlines . map doline . B.lines mapElem n func arr = arr//[(n,func (arr!n))] if mapElem, splitArray, joinArray will be library functions (i think -- _______________________________________________ You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||