magicant

rotate function

May 11th, 2013
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. rotate :: Int -> [a] -> [a]
  2. rotate    n      cs   = drop n cs ++ take n cs
Advertisement
Add Comment
Please, Sign In to add comment