New in version 2.0.
Abjad model of cyclic list:
abjad> from abjad.tools import sequencetools
abjad> cyclic_list = sequencetools.CyclicList('abcd')
abjad> cyclic_list
CyclicList([a, b, c, d])
abjad> for x in range(8):
... print x, cyclic_list[x]
...
0 a
1 b
2 c
3 d
4 a
5 b
6 c
7 d
Cyclic lists overload the item-getting method of built-in lists.
Cyclic lists return a value for any integer index.
Cyclic lists otherwise behave exactly like built-in lists.
L.append(object) – append object to end
Note
Inherited from __builtin__.list
Note
Inherited from __builtin__.list
L.extend(iterable) – extend list by appending elements from the iterable
Note
Inherited from __builtin__.list
Raises ValueError if the value is not present.
Note
Inherited from __builtin__.list
L.insert(index, object) – insert object before index
Note
Inherited from __builtin__.list
Raises IndexError if list is empty or index is out of range.
Note
Inherited from __builtin__.list
L.remove(value) – remove first occurrence of value. Raises ValueError if the value is not present.
Note
Inherited from __builtin__.list
L.reverse() – reverse IN PLACE
Note
Inherited from __builtin__.list
L.sort(cmp=None, key=None, reverse=False) – stable sort IN PLACE; cmp(x, y) -> -1, 0, 1
Note
Inherited from __builtin__.list
x.__add__(y) <==> x+y
Note
Inherited from __builtin__.list
x.__contains__(y) <==> y in x
Note
Inherited from __builtin__.list
x.__delattr__(‘name’) <==> del x.name
Note
Inherited from __builtin__.object
x.__delitem__(y) <==> del x[y]
Note
Inherited from __builtin__.list
x.__delslice__(i, j) <==> del x[i:j]
Use of negative indices is not supported.
Note
Inherited from __builtin__.list
x.__eq__(y) <==> x==y
Note
Inherited from __builtin__.list
x.__ge__(y) <==> x>=y
Note
Inherited from __builtin__.list
x.__gt__(y) <==> x>y
Note
Inherited from __builtin__.list
x.__iadd__(y) <==> x+=y
Note
Inherited from __builtin__.list
x.__imul__(y) <==> x*=y
Note
Inherited from __builtin__.list
Note
Inherited from __builtin__.list
x.__le__(y) <==> x<=y
Note
Inherited from __builtin__.list
Note
Inherited from __builtin__.list
x.__lt__(y) <==> x<y
Note
Inherited from __builtin__.list
x.__mul__(n) <==> x*n
Note
Inherited from __builtin__.list
x.__ne__(y) <==> x!=y
Note
Inherited from __builtin__.list
L.__reversed__() – return a reverse iterator over the list
Note
Inherited from __builtin__.list
x.__rmul__(n) <==> n*x
Note
Inherited from __builtin__.list
x.__setattr__(‘name’, value) <==> x.name = value
Note
Inherited from __builtin__.object
x.__setitem__(i, y) <==> x[i]=y
Note
Inherited from __builtin__.list
x.__setslice__(i, j, y) <==> x[i:j]=y
Use of negative indices is not supported.
Note
Inherited from __builtin__.list