> This is equivalent to the cleaner and more concise: > > sage: reduce(lambda x,y: y(x), [sin]*100, 1) >
Ah, true. (Clearly I've been making lists of lists recently.) You could even get rid of the use of the optional argument to reduce: sage: reduce(lambda x,y: y(x), [1] + [sin]*100) -cc --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
