> Functions
Removes an element from the array array at position position, and returns the removed element.
In JavaScript, a.splice(index, 1) does remove the element, but it returns an array of the removed elements and not the element: write a.splice(index, 1)[0] to get remove back. Out of bounds it raises 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 absent.
Impossible de charger les données du jeu.
Vérifiez votre connexion et réessayez.