View Problem

Define an unmodifiable empty map

DiskEdit
python 2.6
import collections
EmptyDict = collections.namedtuple("EmptyDict", "")
e = EmptyDict()
ExpandDiskEdit
erlang

% Erlang data structures are immutable - updating a 'map' sees a modified copy created
Map = dict:new(),
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 python, csharp, erlang, or fsharp
There are 18 other solutions in additional languages (clojure, cpp, fantom, groovy ...)