On Dec 7, 2008, at 1:00 AM, Robert Bradshaw wrote:
> > In Python you can pass functions around just like anything else. For > example > > sage: def foo(x): return x*x > ....: > sage: def call_it(f, n): return f(n) > ....: > sage: call_it(foo, 5) > 25 > That's handy. I wasn't expecting for it to be that easy. Thanks. Cheers, Tim. --- Tim Lahey PhD Candidate, Systems Design Engineering University of Waterloo http://www.linkedin.com/in/timlahey --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---