Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • D

Idiom #134 Create a new list

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

auto items = [a, b, c];

Assuming that a, b and c have the same type, the list type is infered.
(def items (list a b c))

New implementation...