document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. let RotateArray (arr : \'a array) n =
  2.     let reduced = n % arr.Length
  3.     let cutPoint = if reduced < 0 then reduced + arr.Length else reduced
  4.     Array.append arr.[cutPoint..] arr.[..(cutPoint-1)]
');