types391%python.module
fault.context

Supplemental types.

Cell0
class

A Sequence implementation always containing a single element.

CellEngineering

The purpose of this type is to provide a means to allow receivers of a sequence to know that the sequence produced in a particular case will never contain more than one element without having to explicitly communicate such a fact with another value sent alongside the sequence.

While an explicit plural field is clear and desirable, it also carries the burden of having to be propagated with the sequence. Having the sequence type designate the constraint allows the information to be propagated without concern by the nodes along the call graph.

Cell__slots__
data

__slots__ = ('element',)
	@classmethod

Cell__setup__0
classmethod

__setup__(Class)

Cellcoalesce0
method

coalesce(self, default)

Return the given default if the element is abscence.

By default, if the element is None, return default.

Cell__init__0
method

__init__(self, element)

Cell__getitem__175%
method
object

__getitem__(self, index)

Cell__iter__0
method

__iter__(self)

Cell__reversed__0
method

__reversed__(self)

Cell__len__0
method
int

__len__(self)

Cell__eq__0
method
bool

__eq__(self, operand)

Cell__contains__0
method
bool

__contains__(self, item)

Cellindex0
method
int

index(self, value)

Cellcount0
method
int

count(self, value)

Cellsort20%
method

sort(self)

Sort the Cell's elements by doing nothing.