DuplicateFreeQ[list]
DuplicateFreeQ[list,test]
applies test to pairs of elements to determine whether they should be considered duplicates.
DuplicateFreeQ
DuplicateFreeQ[list]
DuplicateFreeQ[list,test]
applies test to pairs of elements to determine whether they should be considered duplicates.
Details
- DuplicateFreeQ[list] is essentially equivalent to SameQ[list,DeleteDuplicates[list]].
Examples
open all close allBasic Examples (1)
Determine whether or not the list has duplicated elements:
DuplicateFreeQ[{1, 7, 8, 4, 3, 4, 1, 9, 9, 2}]Use Tally to reveal duplicate elements:
Tally[{1, 7, 8, 4, 3, 4, 1, 9, 9, 2}]See Also
DeleteDuplicates DeleteDuplicatesBy DeleteAdjacentDuplicates Tally Counts SquareFreeQ UnsameQ
Function Repository: Duplicates
Related Guides
History
Text
Wolfram Research (2014), DuplicateFreeQ, Wolfram Language function, https://reference.wolfram.com/language/ref/DuplicateFreeQ.html.
CMS
Wolfram Language. 2014. "DuplicateFreeQ." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/DuplicateFreeQ.html.
APA
Wolfram Language. (2014). DuplicateFreeQ. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DuplicateFreeQ.html
BibTeX
@misc{reference.wolfram_2026_duplicatefreeq, author="Wolfram Research", title="{DuplicateFreeQ}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/DuplicateFreeQ.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_duplicatefreeq, organization={Wolfram Research}, title={DuplicateFreeQ}, year={2014}, url={https://reference.wolfram.com/language/ref/DuplicateFreeQ.html}, note=[Accessed: 13-June-2026]}