grr/core/grr_response_core/lib/util/collection.py
def Trim(lst, limit):
  """Trims a given list so that it is not longer than given limit.

  Args:
    lst: A list to trim.
    limit: A maximum number of elements in the list after trimming.

  Returns:
    A suffix of the input list that was trimmed.
  """
  limit = max(0, limit)

  clipping = lst[limit:]
  del lst[limit:]
  return clipping
Trims a given list so that it is not longer than given limit.

  Args:
    lst: A list to trim.
    limit: A maximum number of elements in the list after trimming.

  Returns:
    A suffix of the input list that was trimmed.
  
Trims a given list so that it is not longer than given limit.
Trims a given list so that it is not longer than given limit .
def Trim(lst, limit):
  limit = max(0, limit)
  clipping = lst[limit:]
  del lst[limit:]
  return clipping
def Trim ( lst , limit ) : limit = max ( 0 , limit ) clipping = lst [ limit : ] del lst [ limit : ] return clipping
Trims a given list so that it is not longer than given limit.
Trims a given list so that it is not longer than given limit .
"""Trims a given list so that it is not longer than given limit.

  Args:
    lst: A list to trim.
    limit: A maximum number of elements in the list after trimming.

  Returns:
    A suffix of the input list that was trimmed.
  """
A suffix of the input list that was trimmed.
A suffix of the input list that was trimmed .
lst
A list to trim.
A list to trim .
limit
A maximum number of elements in the list after trimming.
A maximum number of elements in the list after trimming .