On Sun, Apr 07, 2002 at 07:44:42PM +0200, Till Doerges wrote:
> Eventually I want to be able to use my parser 'linep' with 'many' on
> no matter which text-files.
'manyTill linep eof' and is what I wanted (looking at my first name, I
should have gotten
Hi folks,
when trying to write a parser for unix-style textfiles, I stumbled
across the problem having to distinguish between lines w/ a newline
character at the end and lines w/o a newline at the end (i.e. the last
line in a file doesn't have to have it).
Eventually I want to be able to use my
On Tue, Dec 18, 2001 at 05:43:33PM +0100, Toralf Wittner wrote:
> power x y
> | x == 0= 0
> | y == 0= 1
> | y > 0 = x * power x (y-1)
> | y < 0 = 1 / fromInteger x * power x (y+1)
Why did you put 'fromInteger' into the last line? If you get
Hi everybody,
thanks for all the answers!
On Fri, Oct 19, 2001 at 09:55:00AM +0200, Janis Voigtlaender wrote:
[...]
> You might try the following version that does not build up huge data
> structures in accumulating parameters to output them only in the two
> base cases. Rather, it produces par
Hi everybody,
I'm having to deal w/ rather long(*) lists. Unfortunately I stumbled
across some problems in the process.
I tried to implement a function that separates a list into two parts
according to a list of indices given. (Does anything like that perhaps
exist already in the Prelude?)
---