< 99 Elm Problems < Problem 19
Solution 1: Using List.drop
and List.take
rotate n list = List.drop n list ++ List.take n list
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.