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[Search] - search for an occurrence of an element in a list
ListTools[SearchAll] - search for all occurrences of an element in a list
Calling Sequence
Search( element, L )
SearchAll( element, L )
Parameters
element
-
expression
L
list
Description
The Search(element, L) calling sequence searches for element in the list L. If element does not occur as an element of L, then is returned. Otherwise, the index of the first occurrence of element in L is returned.
Note: The list L is not assumed to be sorted, so the time taken by this procedure may be linear in the length of the list.
The SearchAll(element, L) calling sequence finds all occurrences of element in L. It returns an expression sequence of the indices of occurrences of element in L. This expression sequence is NULL if element does not occur in L.
Examples
See Also
ListTools, ListTools[BinarySearch], StringTools[Search], StringTools[SearchAll]
Download Help Document