Logo

Programming-Idioms

  • Erlang
  • Scala

Idiom #134 Create a new list

Declare and initialize a new list items, containing 3 elements a, b, c.

val items = List(a, b, c)
Items = [A,B,C].
(def items (list a b c))

New implementation...