99 Elm Problems/Problem 20/Solutions
(Redirected from 99 Elm Problems/More Lists/Problem 20: Remove the nth element/Solutions)
Solution 1: Using List.take
and List.drop
removeAt n list = List.take (n - 1) list ++ List.drop n list
Solution 1: Using List.take
and List.drop
removeAt n list = List.take (n - 1) list ++ List.drop n list