Strings

class odl.set.sets.Strings(length)[source]

Bases: odl.set.sets.Set

Set of fixed-length (unicode) strings.

Attributes
examples

Return example strings ‘hello’, ‘world’ (size adapted).

length

Fixed length of the strings in this set.

Methods

contains_all(self, other)

Return True if all strings in other have size length.

contains_set(self, other)

Test if other is a subset of this set.

element(self[, inp])

Return an element from inp or from scratch.

__init__(self, length)[source]

Initialize a new instance.

Parameters
lengthpositive int

Fixed length of the strings in this set.