List
Python representation of a Maple list
Description
Method Summary
Superclass
Examples
The maple.List class represents Maple objects of type list.
maple.List inherits all the methods defined on Indexable objects.
It implements the collections.abc.Sequence base abstract class from the collections.abc module.
The following methods are defined on any List object and invoke the specified implementation in Maple.
Method name
Usage
Maple implementation
index
x.index(y)
Return index of y within x
__reversed__
reversed(x)
Return iterator to traverse x in reverse order
Maple lists are one-based. That is, the first element of a maple.List object L is referenced as L[1]. By contrast, Python lists are zero-based.
A maple.List object may be transformed to a Python list using the list command.
Indexable
See Also
OpenMaple/Python
OpenMaple/Python/Examples
OpenMaple/Python/Expression
OpenMaple/Python/Name
OpenMaple/Python/RTable
OpenMaple/Python/Set
OpenMaple/Python/Table
Download Help Document