Skip to content

Instantly share code, notes, and snippets.

@juanbrusco
Created September 5, 2018 20:54
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanbrusco/219105c2bb146e61313c9a60a968be93 to your computer and use it in GitHub Desktop.
Save juanbrusco/219105c2bb146e61313c9a60a968be93 to your computer and use it in GitHub Desktop.
Detect duplicates into list - Freemarker
<#assign newList = [] />
<#list response.data.items as originalList>
<#if ! newList?seq_contains(originalList.xValue)>
<#assign newList = newList + [originalList.xValue] />
</#if>
</#list>
@AltynMambetov
Copy link

Thank you! This is working for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment