Login
|
Signup
langref.org
-
python
,
clojure
,
fsharp
,
fantom
...
add..
all
cpp
csharp
erlang
go
groovy
haskell
ocaml
perl
php
ruby
scala
Home
All
Solved
Unsolved
Strings
Numbers
Regex
Lists
Maps
Structure
Files
Dates
OOP
Networking
XML
Algorithms
Misc
Parallel
View Problem
Maps
Declaration
Define an empty map
python
map = {}
map = {}
clojure
(def m {})
(def m {})
fsharp
let map = Map.empty
#light
open System
open System.Collections
let map = Map.empty
fsharp
let map = new Generic.Dictionary<string, string>()
#light
open System
open System.Collections
let map = new Generic.Dictionary<string, string>()
fsharp
let map = new Hashtable()
#light
open System
open System.Collections
let map = new Hashtable()
fantom
map := [:]
class SolutionXX
{
Void main()
{
map := [:]
}
}
java
Map map = new HashMap();
public class Solution10 {
public static void main(String[] args) {
Map map = new HashMap();
}
}
Submit a new solution for
python
,
clojure
,
fsharp
,
fantom
...
There are 20 other solutions in
additional
languages (
cpp
,
erlang
,
go
,
groovy
...)