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
6 replies
Subscribers
7 subscribers
Views
3306 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
Does the union() function preserve the order of the items passed to it? I s
mikej117
over 9 years ago
Does the union() function preserve the order of the items passed to it?
I suspect not, given that Java Sets don't preserve order...
OriginalPostID-142590
OriginalPostID-142590
Discussion posts and replies are publicly visible
Parents
0
Vijay
Certified Senior Developer
over 9 years ago
Hi mike,
Yes , the union() function preserves the order of items we passed as input.
Lets say, if we pass two arrays as input array 1 and array 2.
It gives the unique values from the array 1 and appends the unique values from array 2 in the same order we gave.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Vijay
Certified Senior Developer
over 9 years ago
Hi mike,
Yes , the union() function preserves the order of items we passed as input.
Lets say, if we pass two arrays as input array 1 and array 2.
It gives the unique values from the array 1 and appends the unique values from array 2 in the same order we gave.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data