If the two maps share keys, the
corresponding values must be the same, or an exception is thrown. This is the
same as C# infix operator -.
Override(T, S)
Map override. Returns a map with the same key/value pairs as the current map,
plus the key/value pair given by the arguments. If the key exists in the current
map, the value of this key in the result will be the value of the second argument
to this method.
Override(Map
)
Map override. Returns the map that contains all key/value pairs of the map s
given as the argument and those key/value pairs of the current map for which
there is no corresponding key in s. In other words, this operation combines the
current map and s in a way that gives priority to s.
Override(Pair)
Map override. Returns the map that contains all key/value pairs of the current
map along with key/value pair d given as the argument, except that if the key of d
is in the current map, the value of d will replace (i.e., override) the corresponding
value from the current map in the result.
Remove(Pair)
Returns a map with the same key/value pairs as the current map, except for the
key/value pair given as the argument. If the key is present in the current map but
is associated with a different value, then an exception is thrown.
298 Modeling Library Reference
RemoveKey(T)
Returns a map with the same key/value pairs as the current map, except for the
key/value pair whose key is given as the argument.
Pages:
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386