On Thursday, September 18, 2014 3:59:47 PM UTC+2, Dan Drake wrote: > > So the above list is > > [applyntimes(f, x, n) for n in range(whatever)] >
... it works, but doesn't it call f way too often? Personally, I think the for-loop with list appending is the easiest. The yield/list approach is the best and much more general -- for MMA users, this is like a simplified Sow/Reap. -- h -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.