expansion
.project(tape)
¶An expansion that keeps only the selected tape of the original expansion.
Preconditions:
tape
number is smaller than the number of tapes.import vcsn
ctx = vcsn.context("lat<lan_char(ab), lan_char(cd), lan_char(ef)>, q")
e = ctx.expression("a*|c|[ef]")
x = e.expansion()
x
x.project(0)
x.project(1)
x.project(2)
Beware that, because of possible redundancy on other tapes, the projection of an expansion is not necessarily the expansions of the projection.
e.project(0).expansion()
e.project(1).expansion()
e.project(2).expansion()