On Thursday, 14 March 2013 at 13:58:45 UTC, n00b wrote:
I tried to use a boolean operator for an array operation :

a[] = b[] < c[];

It compiles but seems to only fill a[] with the result of b[0] < c[0].
Is there any "rational" reason to that?
And is there any way to use boolean operator for array operations?

Maybe this way:

int a[] = [1,2,3];
int b[] = [3,2,1];

a.zip(b).map!"a[0]<a[1]".writeln;
return;

Reply via email to