View Subcategory
Define an empty list
Assign the variable
"list" to a list with no elements
python
list = []
csharp
var list = new List<object>();
erlang
List = [],
fantom
list := [,]
Define a static list
Define the list
[One, Two, Three, Four, Five]
python
list = ['One', 'Two', 'Three', 'Four', 'Five']
print list
print list
csharp
IList<string> list = new string[]{"One","Two","Three","Four","Five"};
erlang
List = [one, two, three, four, five],
List = ['One', 'Two', 'Three', 'Four', 'Five'],
fantom
list := ["One", "Two", "Three", "Four", "Five"]
