How to get the duplicates from an array:
i/p:{1,2,2,3,3}o/p:{2,3}
Discussion posts and replies are publicly visible
This seems to work, too.
a!localVariables( local!input: { 1, 2, 2, 3, 3 }, local!output: index(local!input, a!forEach(union(local!input, local!input), index(wherecontains(fv!item, local!input), 2, {}))), local!output )