expression
.partial_identity
¶An expression which denotes a partial identity of the series denoted by the input expression. In other words, every label $\ell$ is turned into a two-tape label $\ell|\ell$.
Postconditions:
See also:
import vcsn
e = vcsn.Q.expression('ab*<3>c', 'associative')
e
e2 = e.partial_identity()
e2
e2.context()
e2.project(0)
e2.project(1)