> LeekScript
A set is a structure for storing distinct values. Unlike a list, the elements are unique, but like a table they are not ordered.
You can create a set with the following syntax:
A set can contain any type of value:
Searching for an element takes place in constant time:
The in operator can also be used:
Add an element :
Deleting an element:
Possible operations on sets are union, intersection, difference and disjunction:
It is possible to iterate over the elements of a set, without the order being determined:
Impossible de charger les données du jeu.
Vérifiez votre connexion et réessayez.