tf = isKey(obj, key)
| Parameter | Description |
|---|---|
| obj | object that implements keyed lookup. |
| key | key to search for. |
| Parameter | Description |
|---|---|
| tf | logical value: true when the key exists. |
isKey dispatches key lookup to the object type passed as first argument.
If the first argument does not implement keyed lookup, Nelson reports that the function is not implemented for that type.
d = dictionary(["one" "two"], [1 2]);
tf = isKey(d, "two")
| Version | Description |
|---|---|
| 2.0.0 | initial version |