find the repeated elements in a list
FindRepetitions(L, N, f, opt1, opt2, ...)
(optional) non-negative integer or infinity
opt1, opt2, ...
(optional) extra arguments to f
The FindRepetitions(L) function inspects the elements in list L and returns all the elements which previously appeared in the list.
If the optional second argument is specified, FindRepetitions(L, N) removes N copies of each unique element in list L (if possible).
By default, operands are compared by using boolean comparison. If a third argument is specified, then the function f(x, y, opt1, opt2, ...) is called to check if x and y should be considered equal. This function should implement an equivalence relation (i.e. it should be reflexive, commutative, and transitive). If it is not, then the result may not be valid.
L ≔ 1,2,3,4,3,2,3,4,5,4,3,4,5,6
L ≔ 0,x−1⁢x+1,0.,x2−1,−0.,−1−x⁢x+1
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.