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 17

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

Split a list into two parts; the length of the first part is given. import Html exposing (text) import List split : Int -> List a -> (List a, List a) -- your implementation goes here main = text <| toString <| split 3 [1..10] Result: ([1, 2, 3], [4, 5, 6, 7, 8, 9, 10]) Solutions