[top][index]
search for:

override -- override default values for optional arguments

override(defaults,args) -- overrides default values for optional arguments present in the argument sequence args.

The argument defaults should be an immutable hash table ( usually of type OptionTable), and args should be a sequence of arguments, some of which are optional arguments of the form x => v. Each such optional argument is removed from args, and the value in defaults corresponding to the key x is replaced by v. The value returned is the modified pair (defaults, args).

This function is intended for internal use only, and is used in the processing of optional arguments for method functions which accept them.

i1 : defs = new HashTable from { a => 1, b => 2 };
i2 : override(defs, (4,b=>6,5))

o2 = (HashTable{a => 1}, (4, 5))
                b => 6

o2 : Sequence


[top][index]
search for: