Re: Pattern Matching syntax

1998-09-11 Thread Sigbjorn Finne
Hi, using list comprehensions for the kind filter&map operation you're wanting to express, seems like a good option. border p = check "no border in page" [ x | (Border x) <- p] margin p = check "no margin in page" [ x | (Margin x) <- p] check :: String -> [a] -> a check err_msg []=

Re: Int vs Integer

1998-09-11 Thread Sigbjorn Finne
Carl R. Witty writes: > Will Partain <[EMAIL PROTECTED]> writes: > > > [EMAIL PROTECTED] writes: > > > > > ... The question is of performance for Int sized things in > > > Integer, so the fact that you call a good library isn't > > > relevant; what's important is what you do when you don't > >

Pattern Matching syntax

1998-09-11 Thread S. Alexander Jacobson
I am building a description of page state using a list of pageStyles > data PageStyle=Orientation Orient > | Margin BoxData > | Border BoxData > | CurrentYPos Float > | CurrentXPos Float To extract particular items from the

Re: Int vs Integer

1998-09-11 Thread Carl R. Witty
Sigbjorn Finne <[EMAIL PROTECTED]> writes: > > This wants to add two 1-word numbers in a fast, unrolled loop. > > It sets up various registers (size, and pointers to > > source1, source2, and destination). > > It computes the number of complete times to go through the > >

Re: Int vs Integer

1998-09-11 Thread Carl R. Witty
Will Partain <[EMAIL PROTECTED]> writes: > [EMAIL PROTECTED] writes: > > > ... The question is of performance for Int sized things in > > Integer, so the fact that you call a good library isn't > > relevant; what's important is what you do when you don't > > _need_ to use GMP to get the answer.

basic algebra proposal location

1998-09-11 Thread S.D.Mechveliani
Basic Algebra for Haskell-2. Draft Proposal, version 0.02 has slightly changed its directory: ftp.botik.ru:/pub/local/Mechveliani/basAlgPropos/ http://www.botik.ru/... -- Sergey Mechveliani [EMAIL PROTECTED]

Re: Int vs Integer

1998-09-11 Thread Will Partain
[EMAIL PROTECTED] writes: > ... The question is of performance for Int sized things in > Integer, so the fact that you call a good library isn't > relevant; what's important is what you do when you don't > _need_ to use GMP to get the answer. It is relevant, because (unless my memory has faded b