www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Variadic std.algorithm.equal()

reply "Per =?UTF-8?B?Tm9yZGzDtnci?= <per.nordlow gmail.com> writes:
Is there a reason why

std.algorithm.equal()

isn't variadic?
Jun 04 2015
parent "Meta" <jared771 gmail.com> writes:
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