In the abstract type List, how does it determine the argument is an index or element? For example, if a LinkedList calls remove(1), how does computer know whether it's removing the second element or the integer element with value 1?
Thank you!
In the abstract type List, how does it determine the argument is an index or element? For example, if a LinkedList calls remove(1), how does computer know whether it's removing the second element or the integer element with value 1?
Thank you!