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 []=
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
> >
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
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
> >
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 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]
[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