remove

remove ( object index ) : object

Caution: this function is an exception in Grimport. You need to use it in pointer mode. The pointer is the list.
Remove just one element of the list.

Example



list=[1,2,3,4,4,4]
list.remove(3)
list.remove(4)

console(list) //[1, 2, 4, 4]

map =[ "toto":1, "tata":2]
map.remove("tata")
console(map) //["toto":1]


See also

regex

Confusion

To delete a file use the delete function

Parameters

index

The index or the value of the element to remove from the list. !