Class MatrixDictPut

All Implemented Interfaces:
ZeroLengthBehaviourI, ZeroLengthBehaviourI.DefaultZeroLengthBehaviourI, PostfixMathCommandI, Serializable

public class MatrixDictPut extends Put implements ZeroLengthBehaviourI.DefaultZeroLengthBehaviourI
Implementation of Put compatible with the matrix package. 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
mat = [['x',2], ['y',3], ['z',4]];
put(mat,'x',5);
If the key is not in the map it will throw an EvaluationsException.
Since:
4.1 extensions 2.2
See Also: