Jump to content

99 Elm Problems/Problem 17/Solutions

From Wikibooks, open books for an open world

Solution 1: Using List.take and List.drop

split n list = (List.take n list, List.drop n list)