Logo

Programming-Idioms

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

Idiom #134 Create a new list

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

Dim salmons As New List(Of String) From
    {"chinook", "coho", "pink", "sockeye"}

Create a list of strings by using a
collection initializer.
(def items (list a b c))

New implementation...