[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Array Logical Operators
- From: Geoff Leyland <geoff_leyland@...>
- Date: Sat, 22 Oct 2011 11:50:09 +1300
On 22/10/2011, at 12:54 AM, Antonio Scuri wrote:
> I created a class for arrays that use the arithmetic and relational operators. But I would like also to implement logical operators so I can write:
> d = a<b and b<c
> I defined the result of the relational operators as another array of booleans with the result for each element.
How did you manage to return something other than a boolean from a relational operator?