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