Jonathan M Davis:
Why wouldn't they be? You can compare int and double, and
that's what find and canFind care about.
Right, it's a matter of equality operator.
In my code I was performing canFind on an array of tuples. So I
didn't realize that the following code (where both tuple field
type
On Thursday, November 29, 2012 15:28:56 bearophile wrote:
> I have used std.algorithm.canFind with different tuple types by
> mistake, and the compiler has not complained. So to show it I
> have written some reduced code that uses just numbers:
>
>
> import std.algorithm: canFind;
> void main() {