FiniteSet.__getitem__

FiniteSet.__getitem__(self, indcs)[source]

Return self[indcs].

Examples

>>> set = odl.FiniteSet(1, 2, 3, 'string')
>>> set[:3]
FiniteSet(1, 2, 3)
>>> set[3]
'string'