99 Elm Problems/Problem 19/Solutions

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Solution 1: Using List.drop and List.take

rotate n list = List.drop n list ++ List.take n list