Best way in D2 to rotate a ubyte[4] array

Tom tom at nospam.com
Wed Mar 9 14:41:53 PST 2011


What is the most efficient way of implement a rotation of ubyte[4] array?

By rotation I mean: rotateRight([1, 2, 3, 4]) -> [4, 1, 2, 3]

TIA,
Tom;


More information about the Digitalmars-d-learn mailing list