CLEAN
The CLEAN
function returns a new set containing the domains of an existing set having a score higher than a specified value.
For example, if a set variable workingSet
has these contents (domain labels are also shown, in brackets, to facilitate understanding):
1.01 (martial art)
1.01.1 (aikido)
1.07 (golf)
and the hidden results table is the one shown in the onCategorizer introduction, then this statement:
var highScore = CLEAN(workingSet, 50);
will define and populate the highScore
set with:
1.01 (martial art)
because domain 1.01
is the only member of set workingSet
having a score higher than 50. Domain 1.07
(golf), in fact, has a lower score (10) and 1.01.1
(aikido) has no score since it doesn't appear in the hidden results table.
Since the only domains with a score are those listed in the hidden results table, only a domain with a matching entry in that table can be returned.
The syntax is:
CLEAN(set, value)
where:
set
is a set variable.value
is a number.