Appian Community and Appian Academy are being upgraded. From July 24–August 3, the Appian Community will be in read-only mode. During this time, the site will be read-only and user registration will be disabled. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!
The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.
Write a code to find the duplicate words in a string.
input string = "Big black bug bit a big black dog on his big black nose"
output:
Duplicate words in a given string : big black
Discussion posts and replies are publicly visible
a!localVariables( local!string: "Big black bug bit a big black dog on his big black nose", local!array: split(local!string," "), local!uniqueItems: union(local!array,local!array), a!forEach( items: local!uniqueItems, expression: if( count(wherecontains(fv!item,local!array))>1, fv!item, {} ) ) )