dictionary

Methods

Method Reference: dictionary.types

dictionary: [keyType, valueType] = types (d)

dictionary: keyType = types (d)

Return the key and value types.

[keyType, valueType] = types (d) returns the class names of the keys and of the values of d, each a string scalar, or a missing string while d is unconfigured.

See also: dictionary.isConfigured, configureDictionary

Source Code: dictionary

types returns the key and value types as string scalars, missing strings while a dictionary is unconfigured.

 d = dictionary (categorical ({'low', 'high'}), [0.1, 0.9])
d =

  dictionary (categorical ⟼ double) with 2 entries:

    low  ⟼ 0.1000
    high ⟼ 0.9000
 [keyType, valueType] = types (d)
keyType =
  string

   "categorical"
valueType =
  string

   "double"
 [keyType, valueType] = types (dictionary ())
keyType =
  string

   <missing>
valueType =
  string

   <missing>