Skip to content

Reference

This page shows all the features provided by the library.

Methods

For dealing with a circular sequence, RingSeqPy adds:

  1. A type Seq representing a sequence of type list, tuple or str.
  2. new operations on Seq.
  3. alternative versions of some operations already existing for Seq.

Tip

Methods in case 3. alternative versions have a suffix _o in their name, for example slice_o.

Info

By design choice the same methods are available both in the original form method(Seq, ...) and in the form RingSeq(Seq).method(...) via the wrapper class RingSeq, in order to allow use of Dot notation.

Methods fall into the following categories:

Indexing

Rotation and reflection

Slicing

Iterators

Comparisons

Symmetry