Idea: swap with multiple arguments
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Tue May 24 11:49:57 PDT 2016
On 05/24/2016 02:48 PM, Xinok wrote:
> One point I've never seen mentioned though is that these ideas would
> probably have limited usage in the real world.
I agree. I'd be hard pressed to find a use for swap/rotate with more
than three arguments. It's just that generalization that seems natural
yet with limited applicability has worked nicely in a few instances in
the past. -- Andrei
More information about the Digitalmars-d
mailing list