isKey
Determine whether an object contains a key.
📝Syntax
tf = isKey(obj, key)
📥Input Arguments
Parameter Description
obj object that implements keyed lookup.
key key to search for.
📤Output Arguments
Parameter Description
tf logical value: true when the key exists.
📄Description

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.

💡Examples
Test whether a dictionary contains a key.
d = dictionary(["one" "two"], [1 2]);
tf = isKey(d, "two")
🔗See Also
dictionarylookupinsertremove
Used Functions
dictionary
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub