def _branch(results):
 results = list(results)
 ret = Result()
 for result in results[:(-1)]:
  ret += result
  ret += result.expr_as_stmt()
 for result in results[(-1):]:
  ret += result
 return ret

def _branch ( results ) : results = list ( results ) ret = Result ( ) for result in results [ : ( - 1 ) ] : ret += result ret += result . expr_as_stmt ( ) for result in results [ ( - 1 ) : ] : ret += result return ret
make a branch out of a list of result objects this generates a result from the given sequence of results .