dictionary.isConfigured
dictionary: tf = isConfigured (d)
True for a dictionary with key and value types.
tf = isConfigured (d) returns false for an
unconfigured dictionary, which has no entries and no key and value
types yet, and true otherwise, entries or not.
See also: dictionary.types, configureDictionary
Source Code: dictionary
A dictionary with no entries is configured when it has key and value types; the first entries added configure an unconfigured one.
u = dictionary ()
u = dictionary with unset key and value types.
isConfigured (u)
ans = 0
u('first') = 1
u =
dictionary (string ⟼ double) with 1 entry:
"first" ⟼ 1
isConfigured (u)
ans = 1
isConfigured (configureDictionary ('double', 'string'))
ans = 1