Functions for HashSet

Hi All,
Noticed that HashSet is similar to the collection Set in Python to store some data without duplication. But I faced some issues.

.Union works perfectly but not for .UnionWith or .SymmetricExceptWith, anyone has ideas?
I think .UnionWith and .SymmetricExceptWith are void so that they can’t be put into Assign activity. Then how UiPath could handle these functions?

HashSet.zip (34.2 KB)

You can use the Invoke Method activity:

The image represents the code :
hs1.UnionWith(hs2)

hs1 now contains values of hs1 and hs2.

Thank you Alexandre.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.