RE: [Haskell-cafe] Nice way to calculate character frequency in astring

2005-10-25 Thread Creighton Hogg
On Tue, 25 Oct 2005, Simon Peyton-Jones wrote: | Ugh! These are all horrid. If something on the lines of | | calc = accumArray (+) 0 (minBound, maxBound) . (map (\x-(x,1))) | | isn't fast enough, complain to the implementors! What's the | point of functional programming if one has to

[Haskell] Alex question

2005-10-02 Thread Creighton Hogg
Hi, I've read through the documentation on Alex abit, but since I'm not the sharpest tool in the shed I'm not really seeing the obvious way to take the output file of Alex and make a program that will print out the list of tokens scanned from an input file. I had to do something like this this

[Haskell] Re: IO functions reference?

2005-09-27 Thread Creighton Hogg
On Mon, 26 Sep 2005, Stephane Bortzmeyer wrote: On Mon, Sep 26, 2005 at 10:19:09AM -0500, Creighton Hogg [EMAIL PROTECTED] wrote a message of 13 lines which said: Is there a reference where one can lookup all these things? I use: http://www.zvon.org/other/haskell/Outputglobal

Re: [Haskell] Re: IO functions reference?

2005-09-27 Thread Creighton Hogg
On Tue, 27 Sep 2005, Ketil Malde wrote: Creighton Hogg [EMAIL PROTECTED] writes: So I looked to see if there were any standard functions for taking an input line and turning it into a list, and I couldn't find any. How would one do this in Haskell? I just want to parse the line

[Haskell] IO functions reference?

2005-09-26 Thread Creighton Hogg
Hi, I've been trying to write some code in Haskell and have been running into trouble not knowing the already built-in IO functions. For example, is there a function that will take a line and turn it into a list? Is there a reference where one can lookup all these things? Thanks, Creighton

Re: [Haskell-cafe] Haskell versus Lisp

2005-09-16 Thread Creighton Hogg
On Fri, 16 Sep 2005, Mark Carter wrote: This is not a troll, honest, so please bear with me ... I'm a C/C++/VBA programmer (although the former 2 are several years old for me), with a sprinkling of Python. Needless to say, I was looking to see if there were any better ways of doing

<    1   2