[GAP Forum] Advise on data structure

Ha T. Lam hatlam at gmail.com
Fri Sep 14 21:45:06 BST 2012


Dear GAP forum,

I have objects which are lists of 3 elements. I want to keep them sorted
according to the first elements on the lists, which are integers, but I'm
not sure what to use as the data structure so that I can make use of GAP's
sorting algorithm. Is there anyway to use nested lists in this case? I
looked into Hash, but that only accept non-negative integers.

Do you have any advise?

Best regards,

Ha T. Lam


More information about the Forum mailing list