Login
|
Signup
langref.org
-
fsharp
,
fantom
, and
groovy
add..
all
clojure
cpp
csharp
erlang
go
haskell
java
ocaml
perl
php
python
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
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 := [:]
}
}
groovy
def map = [:]
def map = [:]
groovy
Map map = new HashMap();
Map map = new HashMap();
Submit a new solution for
fsharp
,
fantom
, or
groovy
There are 21 other solutions in
additional
languages (
clojure
,
cpp
,
erlang
,
go
...)