def pairwise(array):
    'Return pairwises of an iterable arrary.\n\n    Args:\n        array (list or :class:`numpy.ndarray`): The input iterable array.\n    Returns:\n        :class:`zip`: zip objects.\n    '
    (a, b) = tee(array)
    next(b, None)
    return zip(a, b)
Return pairwises of an iterable arrary.

Args:
    array (list or :class:`numpy.ndarray`): The input iterable array.
Returns:
    :class:`zip`: zip objects.
def pairwise(array):
    'Return pairwises of an iterable arrary.\n\n    Args:\n        array (list or :class:`numpy.ndarray`): The input iterable array.\n    Returns:\n        :class:`zip`: zip objects.\n    '
    (a, b) = tee(array)
    next(b, None)
    return zip(a, b)