@environmentfilter
def do_first(environment, seq):
    """Return the first item of a sequence."""
    try:
        return iter(seq).next()
    except __HOLE__:
        return environment.undefined('No first item, sequence was empty.')
dataset/ETHPy150Open IanLewis/kay/kay/lib/jinja2/filters.py/do_first