def first(iterator, default=None):
    'Return first member of an `iterator`\n\n    Example:\n        >>> def it():\n        ...   yield 1\n        ...   yield 2\n        ...   yield 3\n        ...\n        >>> first(it())\n        1\n\n    '
    return next(iterator, default)
Return first member of an `iterator`

Example:
    >>> def it():
    ...   yield 1
    ...   yield 2
    ...   yield 3
    ...
    >>> first(it())
    1
def first(iterator, default=None):
    'Return first member of an `iterator`\n\n    Example:\n        >>> def it():\n        ...   yield 1\n        ...   yield 2\n        ...   yield 3\n        ...\n        >>> first(it())\n        1\n\n    '
    return next(iterator, default)