Creates an empty TreeMap with the given comparison function.
The comparator determines key ordering: negative means a < b, zero means a == b, positive means a > b.
Example:
var map = new TreeMap<string,string> ((a, b) => {
return strcmp (a, b);
});
assert (map.isEmpty ());
| comparator |
the comparison function for keys. |