digitalmars.D.learn - Variadic std.algorithm.equal()
- "Per =?UTF-8?B?Tm9yZGzDtnci?= <per.nordlow gmail.com> (3/3) Jun 04 2015 Is there a reason why
- Meta (5/9) Jun 04 2015 Probably an oversight. Does any language have a variadic equals?
Is there a reason why std.algorithm.equal() isn't variadic?
Jun 04 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.
Jun 04 2015