def first(coll):
  """Get the first element of anything"""
  # It is really frustrating that Python doesn't have this built in

  try:
    return coll[0]
  except TypeError:
    return next(iter(coll))