Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

99 Elm Problems/Simple List functions

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

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.