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
indices - indices of a table or array
entries - entries of a table or array
Calling Sequence
indices(t)
indices(t,'nolist')
indices(t,'pairs')
entries(t)
entries(t,'nolist')
entries(t,'pairs')
Parameters
t
-
table or Array
nolist
(optional) literal symbol
pairs
Description
The indices and entries functions return sequences of the indices (or keys) and the entries respectively of the table or Array t corresponding to the entries that are explicitly stored.
The result returned is a sequence of lists in an apparently arbitrary order which cannot be controlled by the user. However, there is a one-to-one correspondence between the result of indices and entries.
If the 'nolist' option is used the result returned will be a simple sequence without lists. This is useful for tables where every index or entry is a single object. When 'nolist' is used on a table with expression sequence indices or entries, the pairings may be difficult to deduce in the result.
If the 'pairs' option is used the result returned will be a sequence of index = entry pairs. Since the equation form can represent sequences in either the index or entry part of the equation, neither each side nor the whole equation is wrapped in a list.
Compatibility
The pairs option was introduced in Maple 15.
For more information on Maple 15 changes, see Updates in Maple 15.
Thread Safety
The indices and entries commands are thread-safe as of Maple 15.
For more information on thread safety, see index/threadsafe.
Examples
See Also
Array, Matrix, op, table
Download Help Document