View Problem

Define an unmodifiable empty map

DiskEdit
ruby
map = {}.freeze
ExpandDiskEdit
erlang

% Erlang data structures are immutable - updating a 'map' sees a modified copy created
Map = dict:new(),
DiskEdit
clojure
; Clojure maps are immutable
(def m {})
ExpandDiskEdit
fantom
map := [:].ro

Submit a new solution for ruby, erlang, clojure, go ...
There are 17 other solutions in additional languages (cpp, fsharp, groovy, haskell ...)