Re: Function composition and currying

2003-07-16 Thread K. Fritz Ruehr
I think the cutest way to get what you want here is to define a new operator as follows: (.<) = (.) . (.) (the choice of symbol is supposed to suggest this new form of composition with "two prongs" on the right). Then you can use it as follows, for example: f x = x * x g a b = a + b

Re: Function composition and currying

2003-07-16 Thread Wolfgang Jeltsch
Hi, you may use (f .) . g. Wolfgang On Thursday, 2003-07-17, 02:27, CEST, Dr Mark H Phillips wrote: > Hi, > > Hopefully this is a simple question. I am wanting to know good ways > of using ".", the function composition operator, when dealing with > currying functions. > > Suppose I have the fo

ICFP 2003 -- Call for Participation

2003-07-16 Thread Olin Shivers
ICFP (the International Conference on Functional Programming) is coming up soon -- August 25-29, in Uppsala, Sweden. The following "Call for Participation" has the important bits, but here are the two key things you need to know if you are thinking of attending this year: - Registration is open

FM 2003 Call for Participation

2003-07-16 Thread mailinglist-admin
Sorry if some of you receive multiple copies of this message. Stefania Gnesi (FM2003 General Chair) == Call for Participation

Function composition and currying

2003-07-16 Thread Dr Mark H Phillips
Hi, Hopefully this is a simple question. I am wanting to know good ways of using ".", the function composition operator, when dealing with currying functions. Suppose I have the following functions defined: f :: Int -> Int f x = x*x g :: Int -> Int -> Int g a b = a + b If I wish to ad