label
.multiply
¶This function is overloaded, it supports these signatures:
label
.multiply(
l
)
The product (i.e., the concatenation) of two labels: a.multiply(b)
=> ab
.
label
.multiply(
num
)
The repeated multiplication (concatenation) of an label with itself: a.multiply(3)
=> aaa
.
Precondition:
num
must be nonnegative.import vcsn
label = vcsn.context('law_char, q').label
Instead of a.multiply(b)
, you may write a * b
.
label('ab') * label('cd')
label('ab').multiply(label('cd'))
label('ab') * label(r'\e')
Instead of a.multiply(3)
, you may write a ** 3
.
label('ab') ** 0
label('ab') ** 1
label('ab') ** 3