Jump to content

99 Elm Problems/Problem 18/Solutions

From Wikibooks, open books for an open world

Solution 1: Pointfree version, using List.drop and List.take

sublist start end = List.drop (start - 1) >> List.take (end - start + 1)