Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
5 replies
Subscribers
6 subscribers
Views
1937 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Is there any data structure in Appian similar to a HashSet? I would l
aneeshv
over 12 years ago
Is there any data structure in Appian similar to a HashSet?
I would like to detect DUPLICATES in a list.
If there is a Hashset, its contains function eliminates DUPLICATES .
How would I achieve such a logic in Appian?...
OriginalPostID-60046
OriginalPostID-60046
Discussion posts and replies are publicly visible
0
Christine
Appian Employee
over 12 years ago
If you have an array, you an call the union function to remove the duplicates:
union(pv!array,pv!array)
forum.appian.com/.../Set_Functions
Hope that helps!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aneeshv
over 12 years ago
I know about Union, this will eliminate duplicates. But I would like to detect the eliminated duplicate? I was thinking of a loop and using the contains function. If the array contains the element already, it will not add it and that would be detected as duplicate element?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Christine
Appian Employee
over 12 years ago
Instead of a loop, try using a looping function with contains.
forum.appian.com/.../Looping_Functions
Hope that helps!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 12 years ago
The intersection function also gives you the duplicates.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
shivakanthr
over 12 years ago
You can use distinct() function to remove duplicates,but this function not appears in Functions list,even though you can use it
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel