class documentation
class Sequence:
Our own version of collections.Sequence abstract base class.
Method | __contains__ |
Return True if val found in the sequence; False otherwise. |
Method | __getitem__ |
Return the element at index j of the sequence. |
Method | __len__ |
Return the length of the sequence. |
Method | count |
Return the number of elements equal to given value. |
Method | index |
Return leftmost index at which val is found (or raise ValueError). |