Why did you implement pop like that? It took me 15 minutes to find the bug in my code because of it. XD
You should probably make it throw an error if you give it an argument or make it support poping by index
oh I see what you mean oops ! I fixed it! Will upload the new demo shortly.
Now pop(2) will pop by index indeed. Thanks for this, it was problematic indeed !