chickadee » srfi-179 » interval-rotate

interval-rotate interval dimprocedure

Informally, (interval-rotate interval dim) rotates the axes of interval dim places to the left.

More precisely, (interval-rotate interval dim) assumes that interval is an interval and dim is an exact integer between 0 (inclusive) and (interval-dimension interval) (exclusive). It computes the permutation (vector dim ... (- (interval-dimension interval) 1) 0 ... (- dim 1)) (unless dim is zero, in which case it constructs the identity permutation) and returns (interval-permute interval permutation). It is an error if the arguments do not satisfy these conditions.