'''pair module

Some utilities to deal with pairs.
'''


__all__ = ['first', 'second']
__author__ = 'Alexandre Pierre'


def first(pair):
    '''Returns the first element in a pair'''
    return pair[0]

def second(pair):
    '''Returns the second element in a pair'''
    return pair[1]
