rotate   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/core/adt.xtm

Implementation

(bind-func rotate:[List{!a}*,List{!a}*,i64]*
  (lambda (l n)
    (if (< n 0)
        (append (drop l (* -1 n)) (take l (* -1 n)))
        (append (drop l (- (length l) n))
                (take l (- (length l) n))))))


Back to Index

Similar Entries

  • cpTransformRotate    xtlang
  • cpvrotate    xtlang
  • rotate    scheme
  • rotate-joint    xtlang
  • rotate_matrix    xtlang
  • rotate_matrix    xtlang
  • varotate    xtlang
  • varotate    xtlang
  • vrotate    xtlang
  • xtm_path_rotate    xtlang
  • xtm_path_rotated    xtlang
  • xtm_vgimage_rotate    xtlang
  • xtm_vgimage_rotated    xtlang