[GAP Forum] Improving Dictionary

Mathieu Dutour mathieu.dutour at gmail.com
Mon Feb 15 10:49:44 GMT 2021


I just found the use of Dictionaries in GAP which is great
as this allows faster code to be written just as in other languages
such as C++.

However, some functionality appears to be missing. This may
be because of too complicated to implement but alternatively
because of oversight.

1) Could it be possible to get the full list of keys as a list?
That would avoid having to store it separately as a vector.
I think that should be pretty easy to implement.

2) Could we get the full list of entries in the dictionary as a list
of keys and a list of values?
Again, I would think this would be fairly easy.

3) Could it be possible to implement the removal of an entry
in the dictionary?
This may be harder to implement.

Best,

  Mathieu


More information about the Forum mailing list