Login
|
Signup
langref.org
-
ruby
,
csharp
, and
cpp
add..
all
clojure
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
Maps
Declaration
Define an unmodifiable empty map
ruby
map = {}.freeze
map = {}.freeze
cpp
const std::map<T1,T2> immutable_map_instance_of_type_t1_to_t2;
const std::map<T1,T2> immutable_map_instance_of_type_t1_to_t2;
Submit a new solution for
ruby
,
csharp
, or
cpp
There are 19 other solutions in
additional
languages (
clojure
,
erlang
,
fantom
,
fsharp
...)