SET
Description
The set
operator converts a list to a set (in the Python sense).
Example removing Duplicates
Returns [1]
since a set cannot contain duplicates
Example to speed-up Rules
will evaluate much faster than directly doing in
on the list, since a set can check if something is part of it in O(1) (see Big O Notation)
Last updated