Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
ListTools[Sorted] - test if a list is sorted
Calling Sequence
Sorted(L, f, opts)
Parameters
L
-
list
f
(optional) procedure
opts
(optional) extra arguments to procedure f
Description
The Sorted(L) function returns the value true if list L is sorted according to certain conditions; otherwise, false is returned.
If list L is a list of numeric values, then the elements of L are tested as to whether they are in ascending order.
If L is a list of strings or symbols, the elements of L are tested as to whether they are in lexicographical order.
Otherwise, Sorted(L) tests whether the elements in list L are in address order.
If the optional argument f is specified as either `<` or `>`, the list must contain numeric values and the elements of the list are tested as to whether they are in ascending or descending order, respectively. Otherwise, the expression is evaluated to determine whether element x precedes element y, where x and y are consecutive elements in list L.
Examples
See Also
list, ListTools, map, type[list], type[numeric], type[string], type[symbol]
Download Help Document