isConfigured

Check if dictionary has types assigned to keys and values.

Syntax

  • tf = isConfigured(d)

Input argument

  • d - scalar: dictionary object.

Output argument

  • tf - scalar logical: true if configured, false if not.

Description

tf = isConfigured(d) returns a logical true if the specified dictionary is configured, and a logical false if it is not.

A dictionary is considered configured when it has assigned types for its keys and values. Adding entries to an unconfigured dictionary will configure it.

Example

names = ["Biil" "John" "Yann"];
wheels = [1 2 3];
d = dictionary(wheels, names)
tf = isConfigured(d)
d2 = dictionary()
tf = isConfigured(d2)

See also

dictionary, configureDictionary, insert, values.

History

Author

Allan CORNET

Last updated