Re: We need Documentation

2001-12-20 Thread Dmitry Astapov
EO Hi Hal, EO On Thursday 13 December 2001 20:47, Hal Daume III wrote: I think we should move this off the mailing list. I'm willing to spear-head such an effort. Anyone who is interested in contributing, please email me. I'll compile a list of people and we can figure out what we want

Haskell

2001-12-20 Thread Law
hi, how do I define this function: tupleWithf :: [Int] - [(Int, Int)] such that tupleWithf [x1,x2,.,xn] = [ (f x1, x1), (f x2 x2),, (f xn, xn) ]

Re: Haskell

2001-12-20 Thread Andrew Stribblehill
Quoting Law [EMAIL PROTECTED]: hi, how do I define this function: tupleWithf :: [Int] - [(Int, Int)] such that tupleWithf [x1,x2,.,xn] = [ (f x1, x1), (f x2 x2),, (f xn, xn) ] ^ you wanted a comma there, I guess. I don't see where you're getting `f'

Haskell

2001-12-20 Thread J Brown
hi, I am only a beginner of programming with Haskell, how do I define each of the following: * maxFirst :: (Int,Int) - (Int,Int) - (Int,Int) which returns, of its two input tuples, the one whose first component is the highest. * Define a function maximumFirst :: [(Int,Int)] - (Int,Int)