Re: gcd :: [a] -> a

2000-05-21 Thread Matt Harden
"S.D.Mechveliani" wrote: > When processing this tree, it would be natural to write in each node >m + b and min [m,b]. > > The former is "necessary" due to the infix-binary tradition. > The latter uses [,] because it is good to have one function min for a > list an

Re: gcd :: [a] -> a

2000-05-21 Thread Marcin 'Qrczak' Kowalczyk
Sun, 21 May 2000 11:53:39 +0400 (MSD), S.D.Mechveliani <[EMAIL PROTECTED]> pisze: > The economy of names is more important. Convenience of programming is important too. Many Prelude functions are unnecessary, but are convenient. (++) and concat are not needed (you can write flip (foldr (:)) for

gcd :: [a] -> a

2000-05-21 Thread S.D.Mechveliani
On my proposal for minBy, gcd ... :: [a] -> a and remark on +, && ... being the exceptions Matt Harden <[EMAIL PROTECTED]> writes on 19 May 2000 >> (+), (&&) ... are different. Because they have classical tradition >> to be applied as binary infix o