code: def implied_loop_expr(expr, start, end, delta):
      
      if delta > 0:
          stop = end+1
      else:
          stop = end-1
  
      result_list = [expr(x) for x in range(start,stop,delta)]
  
      # return the flattened list of results
      return list(itertools.chain(result_list))
docs: given the parameters of an implied loop -- namely, the start and end 
         values together with the delta per iteration -- implied_loop_expr() 
         returns a list of values of the lambda expression expr applied to 
         successive values of the implied loop.