Class MatrixDictRemove

All Implemented Interfaces:
PostfixMathCommandI, Serializable

public class MatrixDictRemove extends Remove
Removes entries with matching key from the map. This version uses FieldI.eq(Object, Object) to tests keys for equality so it can also be used with the com.singularsys.extensions.field package.

Allows:

map = {'x':2, 'y':3};
remove(map, 'x');
The function returns either the value or the removed key or Remove.nullValue if the key is missing the key has no value.
Since:
Jep 4.1
See Also:
  • Field Details

  • Constructor Details

    • MatrixDictRemove

      public MatrixDictRemove(Object nullValue, FieldI mf)
      Constructor
      Parameters:
      nullValue - , value returned when a key has no value or if no key exists.
  • Method Details