< 99 Elm Problems < Problem 20

Solution 1: Using List.take and List.drop

removeAt n list = List.take (n - 1) 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.