< 99 Elm Problems < Problem 17

Solution 1: Using List.take and List.drop

split n list = (List.take n list, List.drop 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.