parameters: (environment, seq)
docstring: Return the last item of a sequence.
docstring_summary: Return the last item of a sequence.
docstring_tokens: Return the last item of a sequence .
function: def do_last(environment, seq):
      """Return the last item of a sequence."""
      try:
          return next(iter(reversed(seq)))
      except StopIteration:
          return environment.undefined('No last item, sequence was empty.')
function_tokens: def do_last ( environment , seq ) : try : return next ( iter ( reversed ( seq ) ) ) except StopIteration : return environment . undefined ( 'No last item, sequence was empty.' )