Straw that broke the camel’s back

After many attempts, I stopped using AMPL.
The cabalistic nature of the language, the very poor documentation and the lack of artificial intelligence to help in code development make the effort overwhelming and hours are wasted trying to do things that are trivial in other languages. The straw that broke the camel’s back was the inability to transform a set of pairs {(i,j), (k,l),…} into a set indexed by its numerals from 1 to its cardinal.
How can it be that no AI is able to answer the question correctly?
Thanks