First page Back Continue Last page Overview Graphics

Sequential Data Types

Sequential Data Types are sequences of elements consist of elements which have a defined order.

x in s True, if x is contained in

s, otherwise False

x not in s True, if x is not contained

in s, otherwise False

s + t Returns a new sequence,

which contains the

concatenation of s and t.

s += t similar, but the result will

be assigned to s

s * n or

n * s Result is a new sequence,

which contains n copies

of s.

s *= n Like the previous one, but the result will be assigned

to s