Variadic std.algorithm.equal()

Meta via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jun 4 09:14:49 PDT 2015


On Thursday, 4 June 2015 at 14:42:43 UTC, Per Nordlöw wrote:
> Is there a reason why
>
> std.algorithm.equal()
>
> isn't variadic?

Probably an oversight. Does any language have a variadic equals? 
If any language were to have it, I'd expect it to be one of the 
Lisps, but even Lisp only has binary equals. I don't see any 
reason why we *couldn't* make it variadic, however, at least with 
 >= 2 arguments.


More information about the Digitalmars-d-learn mailing list