Re: [linux-audio-dev] Re: Which widgets?

From: Albert Graef <Dr.Graef@email-addr-hidden-online.de>
Date: Sun Feb 26 2006 - 01:16:26 EET

Erik de Castro Lopo wrote:
>>for (int i=0;i<n;i++)
>> cout << i << endl;
>
> Shouldn't you put parentheses around on or the other of those
> left shift operators? :-)

Now, << was left-associative, wasn't it? Or was it? ;-)

> If you want pristine beauty, you should have a look the function
> to find the intersection of two lists in Ocaml:
>
> let rec intersect lst =
> [...]

To make this thread go totally off-topic, here's the same in Q:

intersect Xs [Y|Ys] = [Y|intersect Xs Ys] if any (=Y) Xs;
                     = intersect Xs Ys otherwise;

Now which one looks prettier? Sorry, couldn't resist. ;-)

Albert

-- 
Dr. Albert Gr"af
Dept. of Music-Informatics, University of Mainz, Germany
Email:  Dr.Graef@email-addr-hidden-online.de, ag@email-addr-hidden-mainz.de
WWW:    http://www.musikinformatik.uni-mainz.de/ag
Received on Sun Feb 26 20:21:37 2006

This archive was generated by hypermail 2.1.8 : Sun Feb 26 2006 - 20:21:37 EET