module helpers.iter_helper

Short summary

module pymmails.helpers.iter_helper

Helpers with iterator

source on GitHub

Functions

function

truncated documentation

iterator_prev_next

iterator on a sequence and returns another iterator with previous item, current item, next item,

Documentation

Helpers with iterator

source on GitHub

pymmails.helpers.iter_helper.iterator_prev_next(iter)

iterator on a sequence and returns another iterator with previous item, current item, next item,

Parameters:

iter – iterator

Returns:

iterator

the previous item is None at the beginning of the sequence, the next item is the same at the end of the sequence

source on GitHub