Login
|
Signup
langref.org
-
ruby
and
clojure
add..
all
cpp
csharp
erlang
fantom
fsharp
go
groovy
haskell
java
ocaml
perl
php
python
scala
Home
All
Solved
Unsolved
Strings
Numbers
Regex
Lists
Maps
Structure
Files
Dates
OOP
Networking
XML
Algorithms
Misc
Parallel
View Problem
Lists
Declaration
Define an empty list
Assign the variable
"list"
to a list with no elements
ruby
list = []
list = []
ruby
list = Array.new
list = Array.new
clojure
(list)
(list)
clojure
'()
'()
Submit a new solution for
ruby
or
clojure
There are 22 other solutions in
additional
languages (
cpp
,
csharp
,
erlang
,
fantom
...)