Idea: swap with multiple arguments
Andrei Alexandrescu via Digitalmars-d Mon, 23 May 2016 13:06:33 -0700
So swap(a, b) swaps the contents of a and b. This could be easily
generalized to multiple arguments such that swap(a1, a2, ..., an)
arranges things such that a1 gets an, a2 gets a1, a3 gets a2, etc. I do
know applications for three arguments. Thoughts? -- Andrei
- Idea: swap with multiple arguments Andrei Alexandrescu via Digitalmars-d
- Re: Idea: swap with multiple a... Steven Schveighoffer via Digitalmars-d
- Re: Idea: swap with multip... Tourist via Digitalmars-d
- Re: Idea: swap with multip... Q. Schroll via Digitalmars-d
- Re: Idea: swap with multip... Jonathan M Davis via Digitalmars-d
- Re: Idea: swap with multip... Ali Çehreli via Digitalmars-d
- Re: Idea: swap with mu... Steven Schveighoffer via Digitalmars-d
- Re: Idea: swap wit... Jonathan M Davis via Digitalmars-d
- Re: Idea: swap wit... ixid via Digitalmars-d
- Re: Idea: swa... H. S. Teoh via Digitalmars-d
- Re: Idea: swa... Wyatt via Digitalmars-d
