Closed finitespace closed 5 years ago
Yes, you can treat the linked list like an array. For example:
int myvalue = myLinkList[0];
Constant functions are required for this type of indexing.
Now I get it. However, the iterator method has been copied. Make a call for the original one from the new one, so that we can simplify the code as much as we can please
Unfortunately that is not possible.
It was copied because it must be a constant function. You cannot call a non constant function from a constant function.
Thanks for the PR! This is now in production
Hi @finitespace, can you explain more about the improvements?