xplenty_rb.bags_union

Description

Returns the union of two bags. The result is the distinct items that appear in either bag1 or bag2.

Syntax

xplenty_rb.bags_union(bag1, bag2)

Examples

bag1 is [(1),(2),(2),(3)]
bag2 is: [(1),(2),(4)]

xplenty_rb.bags_union(bag1,bag2) returns [(1),(2),(3),(4)].

Return value datatype

Bag

Impact of null value

If either bag is null, returns null.