Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/word-range.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ Example
... .alphabet_size(2) \
... .min(1) \
... .max(5)
<WordRange of length 30 with letters in [0, 2) in shortlex order>
<WordRange of length 30 with letters in [0, 2) in lenlex order>
>>> words.order()
<Order.lenlex: 1>

>>> from libsemigroups_pybind11 import ToString
>>> words.alphabet_size(1).min(0).max(10)
<WordRange of length 10 with letters in [0, 1) in shortlex order>
<WordRange of length 10 with letters in [0, 1) in lenlex order>

>>> strings = words | ToString("a")
>>> list(strings)
Expand Down Expand Up @@ -483,13 +483,13 @@ Example
... .alphabet("ba") \
... .min(1) \
... .max(5)
<StringRange of length 30 in shortlex order>
<StringRange of length 30 in lenlex order>
>>> strings.order()
<Order.lenlex: 1>

>>> from libsemigroups_pybind11 import ToWord
>>> strings.alphabet("a").min(0).max(10)
<StringRange of length 10 in shortlex order>
<StringRange of length 10 in lenlex order>

>>> wrds = strings | ToWord("a")
>>> list(wrds)
Expand Down
Loading