Returns a set containing all unique elements in the list.
In case that two or more elements are equal but non-identical, the result set
will only contain the first element in the list. The remaining elements are
discarded.
Returns
non-null rules.Set set containing unique values in the given list.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-06-04 UTC."],[],[],null,["# Interface: List\n\n[rules](/docs/reference/rules/rules).List\n=========================================\n\ninterface static\n\nList type. Items are not necessarily homogenous.\n\nIn addition to the methods listed below, lists have the following operators:\n\n*** ** * ** ***\n\n| Operator | Usage |\n|----------|-------------------------------------------------------------------------|\n| `x == y` | Compare lists x and y |\n| `x[i]` | Index operator, get value index i |\n| `x[i:j]` | Range operator, get sublist from index i to j |\n| `v in x` | Check if value v exists in list x. ```text 'a' in ['a','b'] == true ``` |\n\nMethods\n-------\n\n### concat\n\nconcat(list) returns [rules.List](/docs/reference/rules/rules.List)\n\nCreate a new list by adding the elements of another list to the\nend of this list.\n\n| #### Parameter ||\n|------|---------------------------------------------------------------------------------------------|\n| list | [rules.List](/docs/reference/rules/rules.List) list to concatenate. Value must not be null. |\n\nReturns\n\n: `non-null `[rules.List](/docs/reference/rules/rules.List) the list with all elements of the other list added.\n\n### hasAll\n\nhasAll(list) returns [rules.Boolean](/docs/reference/rules/rules.Boolean)\n\nDetermine whether the list contains all elements in another list.\n\n| #### Parameter ||\n|------|----------------------------------------------------------------------------------------------------------|\n| list | [rules.List](/docs/reference/rules/rules.List) The list of elements to look for. Value must not be null. |\n\nReturns\n\n: `non-null `[rules.Boolean](/docs/reference/rules/rules.Boolean) true if this list contains all elements in the\n other.\n\n### hasAny\n\nhasAny(list) returns [rules.Boolean](/docs/reference/rules/rules.Boolean)\n\nDetermine whether the list contains any element in another list.\n\n| #### Parameter ||\n|------|----------------------------------------------------------------------------------------------------------|\n| list | [rules.List](/docs/reference/rules/rules.List) The list of elements to look for. Value must not be null. |\n\nReturns\n\n: `non-null `[rules.Boolean](/docs/reference/rules/rules.Boolean) true if this list contains any element in the\n other.\n\n### hasOnly\n\nhasOnly(list) returns [rules.Boolean](/docs/reference/rules/rules.Boolean)\n\nDetermine whether all elements in the list are present in another list.\n\n| #### Parameter ||\n|------|----------------------------------------------------------------------------------------------------------|\n| list | [rules.List](/docs/reference/rules/rules.List) The list of elements to look for. Value must not be null. |\n\nReturns\n\n: `non-null `[rules.Boolean](/docs/reference/rules/rules.Boolean) true if all elements in the list are present\n in another list, excluding repeated elements.\n\n#### Example\n\n ['a', 'b'].hasOnly(['a', 'c']) == false\n ['a', 'b'].hasOnly(['a', 'b', 'c']) == true\n ['a', 'b'].hasOnly(['b', 'a']) == true\n ['a', 'a', 'b'].hasOnly(['a', 'b', 'b']) == true\n ['a', 'a', 'b'].hasOnly(['a', 'b', 'b', 'c']) == true\n\n### join\n\njoin(separator) returns [rules.String](/docs/reference/rules/rules.String)\n\nJoin the elements in the list into a string, with a separator.\n\n| #### Parameter ||\n|-----------|---------------------------------------------------------------------------------------------------------|\n| separator | [rules.String](/docs/reference/rules/rules.String) String to separate elements. Value must not be null. |\n\nReturns\n\n: `non-null `[rules.String](/docs/reference/rules/rules.String) the list joined as a string.\n\n### removeAll\n\nremoveAll(list) returns [rules.List](/docs/reference/rules/rules.List)\n\nCreate a new list by removing the elements of another list from this list.\n\n| #### Parameter ||\n|------|-----------------------------------------------------------------------------------------------------|\n| list | [rules.List](/docs/reference/rules/rules.List) list of elements to remove.. Value must not be null. |\n\nReturns\n\n: `non-null `[rules.List](/docs/reference/rules/rules.List) the list with all elements of the other list removed.\n\n### size\n\nsize() returns [rules.Integer](/docs/reference/rules/rules.Integer)\n\nGet the number of values in the list.\n\nReturns\n\n: `non-null `[rules.Integer](/docs/reference/rules/rules.Integer) the number of values in the list.\n\n### toSet\n\ntoSet() returns [rules.Set](/docs/reference/rules/rules.Set)\n\nReturns a set containing all unique elements in the list.\n\nIn case that two or more elements are equal but non-identical, the result set\nwill only contain the first element in the list. The remaining elements are\ndiscarded.\n\nReturns\n\n: `non-null `[rules.Set](/docs/reference/rules/rules.Set) set containing unique values in the given list."]]