src/swipl-devel/packages/xpce/man/refmanual/md/dict.md

class dict {#class-dict}

A dict object (a dictionary) is a collection of dictionary items (dict_item objects), each of which is a triple (key, label, object). The key must be unique over the dict.

Dict objects can be made visible by attaching them to a browser object or list_browser object. The browser can then be used to select dict_item objects.

The access to a dict_item object from a key is implemented using a hash_table object.

Bugs:

Class dict is very old and is based on some outdated ideas. Currently its primary use is to provide the storage facilities for a browser.

Its definition might be revised some day to be more in line with the spirit of the current PCE system. Notably try not to rely on ->format and <-current.

@see class browser @see class list_browser @see class dict_item

Class variables {#class-dict-classvars}

Instance variables {#class-dict-instvars}

Send methods {#class-dict-send}

Get methods {#class-dict-get}



Try the rswipl package in your browser

Any scripts or data that you put into this service are public.

rswipl documentation built on June 16, 2026, 5:07 p.m.