code: def reduce(function, initval=None):
  	
  	if initval is None:
  		return lambda s: __builtin__.reduce(function, s)
  	else:
  		return lambda s: __builtin__.reduce(function, s, initval)
docs: Curried version of the built-in reduce.
  	
  	>>> reduce(lambda x,y: x+y)( [1, 2, 3, 4, 5] )
  	15