union

union(x, y)

Performs the union of two lists

Args: x (List): a List with atomic elements y (List): a List with atomic elements

Returns: 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]