After having some issues with the elimination of options (issue #33), this changes implement the use of a single data structure, instead of using one and sometimes converting to another. Given that, the insert function was changed, where by default an element is added to the end of the list, but if the user specifies an index, the element is added to that index (or changed, if that index already exists).
All features seems to work without issues and a complex example is given. Any issues found, i'm open to try to fix it!
After having some issues with the elimination of options (issue #33), this changes implement the use of a single data structure, instead of using one and sometimes converting to another. Given that, the insert function was changed, where by default an element is added to the end of the list, but if the user specifies an index, the element is added to that index (or changed, if that index already exists).
All features seems to work without issues and a complex example is given. Any issues found, i'm open to try to fix it!