Class MatrixDictGetOr

All Implemented Interfaces:
PostfixMathCommandI, Serializable

public class MatrixDictGetOr extends GetOr
Implementation of GetOr 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]];
getOr(mat,'x',-1);
Since:
4.1 extensions 2.2
See Also: