Skip to content

Instantly share code, notes, and snippets.

@lattejed
Last active December 17, 2015 23:59
Show Gist options
  • Save lattejed/5693737 to your computer and use it in GitHub Desktop.
Save lattejed/5693737 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