> Functions
Removes the element at position position from the array array, and returns the removed element.
In JavaScript, a.splice(index, 1) does remove the element, but it returns an array of the removed elements, not the element itself: write a.splice(index, 1)[0] to get the behavior of remove. Out of bounds, it throws nothing and returns an empty array, so [0] is undefined. A negative index counts from the end.
In Python, a.pop(index) removes the element and returns it, like remove; del a[index] removes it too but returns nothing. Both raise an IndexError out of bounds, and a negative index counts from the end. Not to be confused with a.remove(value), which removes the first occurrence of a value — that is removeElement in LeekScript — and raises a ValueError if it is missing.
Impossible de charger les données du jeu.
Vérifiez votre connexion et réessayez.