Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit 95c37d8

Browse files
author
Ehsan Totoni
committed
docs dict
1 parent 9b66917 commit 95c37d8

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

docs/source/supported.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,19 @@ are supported. Here are some examples::
156156
s = s+'_test'
157157
a = int('12')
158158
b = float('1.2')
159+
160+
Dictionaries
161+
------------
162+
163+
HPAT supports basic integer dictionaries currently. ``DictIntInt`` is the type
164+
for dictionaries with 64-bit integer keys and values, while ``DictInt32Int32``
165+
is for 32-bit integer ones. Getting and setting values, ``pop`` and ``get``
166+
operators, as well as ``min`` and ``max`` of keys is supported. For example::
167+
168+
d = DictIntInt()
169+
d[2] = 3
170+
a = d[2]
171+
b = d.get(3, 0)
172+
d.pop(2)
173+
d[3] = 4
174+
a = min(d.keys())

0 commit comments

Comments
 (0)