Main Content

Dictionaries

Map data with keys that index values

A dictionary is a data structure that associates each key with a corresponding value. Keys and values can be of any data type, providing more flexibility for data access than array indices and improved performance.

dictionary is recommended over containers.Map because it supports more data types as keys and values and provides better performance. (seit R2022b)

Funktionen

dictionaryObject that maps unique keys to values (Seit R2022b)
configureDictionaryCreate dictionary with specified key and value types (Seit R2023b)
insertAdd entries to a dictionary (Seit R2023b)
lookupFind value in dictionary by key (Seit R2023b)
removeRemove dictionary entries (Seit R2023b)
entriesKey-value pairs of dictionary (Seit R2022b)
keysKeys of dictionary (Seit R2022b)
valuesValues of dictionary (Seit R2022b)
typesTypes of dictionary keys and values (Seit R2022b)
numEntriesNumber of key-value pairs in dictionary (Seit R2022b)
isConfiguredDetermine if dictionary has types assigned to keys and values (Seit R2022b)
isKeyDetermine if dictionary contains key (Seit R2022b)
keyHashGenerate hash code for dictionary key (Seit R2022b)
keyMatchDetermine if two dictionary keys are the same (Seit R2022b)

Klassen

alle erweitern

containers.MapObject that maps unique keys to values

Themen