@environmentfilter
def do_last(environment, seq):
    try:
        return next(iter(reversed(seq)))
    except StopIteration:
        return environment.undefined('No last item, sequence was empty.')
Converts a set of fields to a hash map/dictionary to send to SOLR.
dataset/ETHPy150Open GoogleCloudPlatform/appengine-flask-skeleton/lib/jinja2/filters.py/do_last--crossover with--dataset/ETHPy150Open AppScale/appscale/SearchService/solr_interface.py/Solr.to_solr_hash_map