Skip to main content

  | मौसम…

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

411 REFERENCE · Wikibooks

99 Elm Problems/Problem 14

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

Duplicate each element of a list. import Html exposing (text) import List duplicate : List a -> List a -- your implementation goes here main = text <| toString <| duplicate [1, 2, 3, 5, 8, 8] Result: [1, 1, 2, 2, 3, 3, 5, 5, 8, 8, 8, 8] Solutions