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
fsharp
// Most native fsharp data structures are immutable - updating a 'map' sees a modified copy created
let map = Map.empty

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