Idea: swap with multiple arguments
Era Scarecrow via Digitalmars-d
digitalmars-d at puremagic.com
Mon May 23 15:39:36 PDT 2016
On Monday, 23 May 2016 at 21:47:31 UTC, Ali Çehreli wrote:
> Yes, rotate(), but then I would never remember what direction
> it rotates.
If we take a cue from assembly instructions, there's rol and ror
(rotate left/right). These are other instructions are normally
unreachable in languages; Although it's usefulness can be wagered
from time to time.
There's also it's cousins rotate with carry (rcl and rcr).
More information about the Digitalmars-d
mailing list