__reversed__ - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


__reversed__

iterate over expression sequence in reverse order

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

x.__reversed__()

reversed(x)

Parameters

x

-

ExpressionSequence object

Description

• 

__reversed__ function returns a Python Iterator object for the ExpressionSequence x.

• 

This is similar to __iter__ but performs the iteration is reverse order.

• 

This function can also be called by simply entering reversed(x).

Examples

The following interactive session illustrates the use of an reversedator used implicitly in a for-in loop over the container structure.

>>> import maple

>>> import maple.namespace

>>> reversed( maple.execute('3,4,2*Pi,sqrt(2);') )

See Also

OpenMaple

OpenMaple/Python/API

OpenMaple/Python/Expression

OpenMaple/Python/ExpressionSequence

OpenMaple/Python/ExpressionSequence/index