sasoptpy.abstract.SetIteratorGroup

class SetIteratorGroup(initset, datatype=None, names=None)[source]

Bases: collections.OrderedDict, sasoptpy.core.expression.Expression

Creates a group of set iterator objects for multi-dimensional sets

Parameters
initsetSet

Set to be iterated on

namesstring, optional

Names of the iterators

datatypestring, optional

Types of the iterators

Examples

>>> T = so.Set(name='T', settype=[so.STR, so.NUM])
>>> for j in T:
...     print(j.get_name(), type(j))
...     for k in j:
...         print(k.get_name(), type(k))
o5 <class 'sasoptpy.abstract.set_iterator.SetIteratorGroup'>
o6 <class 'sasoptpy.abstract.set_iterator.SetIterator'>
o8 <class 'sasoptpy.abstract.set_iterator.SetIterator'>