View Problem

Define an unmodifiable empty map

ExpandDiskEdit
php
/* It's not possible to define an array as a constant
* Instead we can use the serialize-function */

$fruits = array("apple", "banana", "orange");
define("FRUITS", serialize($fruits));
echo FRUITS; // a:3:{i:0;s:5:"apple";i:1;s:6:"banana";i:2;s:6:"orange";}
$my_fruits = unserialize(FRUITS); // and normal array again
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 {})

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