isConfigured
Tests whether a dictionary has its key and value types defined.
Category: Language Fundamentals > Data Types
Syntax
tf = isConfigured(d)
Returns true if d has key and value types.
Description
A dictionary created with dictionary and no arguments has no types yet, so it is unconfigured. The types are fixed the first time entries are added, or when it is made with entries or with configureDictionary. An empty dictionary created with explicit types is configured.
Input arguments
ddictionaryobject.
Output arguments
tf- Logical scalar.
Example
Unconfigured and configured
isConfigured(dictionary)
isConfigured(dictionary(["a" "b"], [1 2]))
isConfigured(dictionary(string.empty, double.empty))
Output
ans = logical
0
ans = logical
1
ans = logical
1