Reverse all the concatenations, and transpose the labels.
Preconditions:
Properties:
See also:
In [1]:
import vcsn
c = vcsn.context('law_char(abc), seriesset<law_char(xyz), b>')
c
Out[1]:
In [2]:
r = c.expression('(<x>a+<xyz>(abc))*')
r
Out[2]:
In [3]:
r.transpose()
Out[3]:
In [4]:
assert(r.transpose().transpose() == r)
transpose
and transposition
should not be confused. The former completely rewrites the expression, while the latter only wraps it in a syntactic transposition operator:
In [5]:
r = c.expression('<xyz>(abc)')
r
Out[5]:
In [6]:
r.transpose()
Out[6]:
In [7]:
r.transposition()
Out[7]: