Close
Close window
__reversed__ - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

__reversed__

iterate over expression sequence in reverse order

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 maplesoft.maple as mpl

>>> import maplesoft.maple.namespace as msymbol

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


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /