Assign the variable
"list" to a list with no elements
csharp 3var list = new List<object>();
using System.Collections.Generic;
class SolutionXX
{
static void Main()
{
var list = new List<object>();
}
}
erlang List = [],
-module(emptylist).
-export([start/0]).
start() ->
List = [],
io:format("~B~n", [length(List)]).
Submit a new solution for
csharp,
clojure, or
erlang
There are 22 other solutions in
additional languages (
cpp,
fantom,
fsharp,
go ...)