learn-you-a-haskell-exercises icon indicating copy to clipboard operation
learn-you-a-haskell-exercises copied to clipboard

incomplete solution in 2-starting-out for rotate

Open scottnm opened this issue 6 years ago • 0 comments

rotate's solution is rotate n l = drop n l ++ take n l

this doesn't take into account rotations larger than the length of the list.

occurrences of n should be n mod (length list)

scottnm avatar Dec 21 '18 22:12 scottnm