< 99 Elm Problems < Problem 18
Solution 1: Pointfree version, using List.drop
and List.take
sublist start end = List.drop (start - 1) >> List.take (end - start + 1)
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.