xplenty_rb.bags_difference

Description

Returns the difference between two bags. The result is the items in bag1 that do not appear in bag2.

Syntax

xplenty_rb.bags_difference(bag1, bag2)

Examples

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

xplenty_rb.bags_difference(bag1,bag2) returns [(3)].

Return value datatype

Bag

Notes

If all the values in bag1 exist in bag2, an empty bag is returned.

Impact of null value

If either bag is null, returns null.

Feedback and Knowledge Base