SDS2 Parametric API
 All Classes Namespaces Functions Variables Pages
Functions
iterators Namespace Reference

Functions

def groupwise
def overlapping_groups
def pairwise
def runs

Function Documentation

def iterators.groupwise ( )
Returns
Instance of type (1,2), (3,4)
 For iteration over a sequence in chunks.
def iterators.overlapping_groups ( )
Returns
Instance of type (1,2), (2,3), (3,1)
 A generator to allow iteration over a sequence in overlapping
def iterators.pairwise ( )
Returns
Instance of type (1,2), (2,3), (3,1)
 A generator to allow iteration over a sequence in overlapping
def iterators.runs (   args)
Returns
Instance of type [(2,'a'),(3,'b'),(1,'a')]
 Group adjacent identical items in a sequence.