Logo

Programming-Idioms

Declare a new list items of string elements, containing zero elements
Implementation
Dart

Implementation edit is for fixing errors and enhancing with metadata. Please do not replace the code below with a different implementation.

Instead of changing the code of the snippet, consider creating another Dart implementation.

Be concise.

Be useful.

All contributions dictatorially edited by webmasters to match personal tastes.

Please do not paste any copyright violating material.

Please try to avoid dependencies to third-party libraries and frameworks.

Other implementations
var items []string
items = []
items = []
List<String> items = [];
uses classes;
items := TStringList.Create;
character(len=:), allocatable, dimension(:) :: items
allocate (items(0),source="")
using System.Collections.Generic;
var items = new List<string>();
let items = [];
let items: Vec<String> = vec![];
using System.Linq;
var items = Enumerable.Empty<string>();
#include <vector>
#include <string>
std::vector<std::string> items;
my @items;
# or
my @items = ();
import java.util.*;
List<String> list = new ArrayList<>();
var :: [String]
var = []
(def items '())