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
fantom
map := [:].ro

Submit a new solution for python, csharp, erlang, or fantom
There are 18 other solutions in additional languages (clojure, cpp, fsharp, groovy ...)