View Problem

Define an unmodifiable empty map

DiskEdit
ruby
map = {}.freeze
ExpandDiskEdit
fantom
map := [:].ro
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, csharp, fantom, or fsharp
There are 18 other solutions in additional languages (clojure, cpp, erlang, groovy ...)