def genFull(pset, min_, max_, type_=None):
 def condition(height, depth):
  'Expression generation stops when the depth is equal to height.'
  return (depth == height)
 return generate(pset, min_, max_, condition, type_)

def genFull ( pset , min_ , max_ , type_ = None ) : def condition ( height , depth ) : return ( depth == height ) return generate ( pset , min_ , max_ , condition , type_ )
generate an expression where each leaf has a the same depth between *min* and *max* .