tf = isKey(d)
| Parameter | Description |
|---|---|
| d | scalar: dictionary object. |
| Parameter | Description |
|---|---|
| tf | scalar logical: true if key, false if not. |
tf = isKey(d, key) returns a logical true if the specified key exists in the configured dictionary, and a logical false if it does not.
If d is an unconfigured dictionary, isKey throws an error.
If key is an array of multiple keys, then tf is a logical array of the same size.
names = ["Biil" "John" "Yann"];
wheels = [1 2 3];
d = dictionary(wheels, names)
tf = isKey(d, "John")
tf = isKey(d, ["biil" , "Yannis")
| Version | Description |
|---|---|
| 1.5.0 | initial version |