99 Elm Problems/Simple List functions
Let’s practice using basic functions from the List
module.
Problem 6 - Use List.reverse
to test if a list is a palindrome.
Problem 17 - Use List.take
and List.drop
to split a list into two lists.
Problem 18 - Use List.take
and List.drop
to take a portion of a list
Problem 20 - Use List.take
and List.drop
and the append operator (++)
or List.append
to remove an element from a list.
Problem 19 - Use List.take
and List.drop
and the append operator (++)
or List.append
to rotate the elements of a list.
Problem 21 Use List.take
, List.drop
, append operator (++)
and the “cons” operator (::)
to get a specified element from a list. You may want to use split from Problem 17.