> LeekScript
A set is a structure for storing distinct values. Unlike in a list, the elements are therefore unique, but like in a map they are not ordered.
You can create a set with the following syntax:
A set can contain any type of value:
Looking up an element takes constant time:
The in operator can also be used:
Adding an element:
Removing an element:
The possible operations on sets are union, intersection, difference and disjunction:
You can iterate over the elements of a set, in no particular order:
Impossible de charger les données du jeu.
Vérifiez votre connexion et réessayez.