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(other)

Return True if all strings in other have size length.

contains_set(other)

Test if other is a subset of this set.

element([inp])

Return an element from inp or from scratch.

__init__(length)[source]

Initialize a new instance.

Parameters
lengthpositive int

Fixed length of the strings in this set.