Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
ListTools[FindRepetitions] - find the repeated elements in a list
Calling Sequence
FindRepetitions(L, N, f, opt1, opt2, ...)
Parameters
L
-
list
N
(optional) non-negative integer or infinity
f
(optional) procedure
opt1, opt2, ...
(optional) extra arguments to f
Description
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.
Examples
See Also
list, ListTools, ListTools[MakeUnique], type/list, verify
Download Help Document