union
union(x, y)Performs the union of two lists
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| x | List | a List with atomic elements | required |
| y | List | a List with atomic elements | required |
Returns
| Name | Type | Description |
|---|---|---|
| List | a list with unique elements in x and y together |
Examples
>>> from rlike import *
>>> x = [1, 2, 3, 3]
>>> y = [3, 4, 6]
>>> union(x, y)
[1, 2, 3, 4, 6]