Shift array:
more at siccolo blurbs
public static int?[] ShiftArray(int?[] ins)
{
if (ins == null || ins.Length == 0) { return ins; }
var outs = new int?[ins.Length];
Array.Copy(ins, 1, outs, 0, ins.Length - 1);
outs[outs.Length - 1] = ins[0];
return outs;
}
more at siccolo blurbs
No comments:
Post a Comment