simlogo1

 

 

 

SimQuest 6.4 help

 

 

ShiftC

 

When applied to an array and an integer, ShiftC produces an array which is obtained by a cyclic right shift of the original array. The size of the shift is specified by the integer (negative values correspond to left shifts).
It has three variables: array, shift, and result.

 

Examples:

       cyclic-shift((a, b, c, d), 1) = (d, a, b, c)

       cyclic-shift((a, b, c, d), -1) = (b, c, d, a)

       cyclic-shift((a, b, c, d), -5) = (b, c, d, a)

 

 

 

Related topics:

 

 

 

Copyright University of Twente 2011