This is a subclass of Rdict that contains an additional slot for a default function, which assigns a value to an input key. Only partially implemented, but working well enough for the geometric mean. Will be combined with Rdict later.
keysA list of keys.
valuesA list of values corresponding to the keys.
defaultA function that takes as input a key and outputs a value to assign to that key.