old_contents: import time
  
  def timestamp_string():
    return time.strftime("%Y_%m_%d_%H_%M_%S", time.localtime())
  
  def find(f, seq):
    """Return first item in sequence where f(item) == True."""
    for item in seq:
      if f(item):
        return item
  
  def find_index(f, seq):
    """Return the index of the first item in sequence where f(item) == True."""
    for index, item in enumerate(seq):
      if f(item):
        return index
  
  
new_contents: import time
  
  def is_sorted(l):
    return all(l[i] <= l[i+1] for i in xrange(len(l)-1))
  
  def is_strictly_sorted(l):
    return all(l[i] < l[i+1] for i in xrange(len(l)-1))
  
  def timestamp_string():
    return time.strftime("%Y_%m_%d_%H_%M_%S", time.localtime())
  
  def find(f, seq):
    """Return first item in sequence where f(item) == True."""
    for item in seq:
      if f(item):
        return item
  
  def find_index(f, seq):
    """Return the index of the first item in sequence where f(item) == True."""
    for index, item in enumerate(seq):
      if f(item):
        return index
  
  
subject: Add little functions for checking if a list is sorted without sorting it