pmt: Dictionary

pmt.is_dict(pmt_t obj) → bool

Return true if is a dictionary.

pmt.make_dict() → pmt_t

Make an empty dictionary.

pmt.dict_add(pmt_t dict, pmt_t key, pmt_t value) → pmt_t

Return a new dictionary with associated with .

pmt.dict_delete(pmt_t dict, pmt_t key) → pmt_t

Return a new dictionary with removed.

pmt.dict_has_key(pmt_t dict, pmt_t key) → bool

Return true if exists in .

pmt.dict_ref(pmt_t dict, pmt_t key, pmt_t not_found) → pmt_t

If exists in , return associated value; otherwise return .

pmt.dict_items(pmt_t dict) → pmt_t

Return list of (key . value) pairs.

pmt.dict_keys(pmt_t dict) → pmt_t

Return list of keys.

pmt.dict_values(pmt_t dict) → pmt_t

Return list of values.

Previous topic

pmt: Serialize

Next topic

pmt: Lists

This Page