Skip to content

Instantly share code, notes, and snippets.

@lattejed
Created June 1, 2013 17:48
Show Gist options
  • Save lattejed/5691161 to your computer and use it in GitHub Desktop.
Save lattejed/5691161 to your computer and use it in GitHub Desktop.
rotateR :: [a] -> [a]
rotateR [x] = [x]
rotateR xs = last xs : init xs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment