On Wed, Aug 10, 2016 at 7:36 AM, Todd Zimmerman <[email protected]> wrote: > Is there any significant difference in SageMath between defining a function > using lambda vs. defining it using 'def ...:'? Both situations result in > functions that can be differentiated, integrated, etc so I'm not sure if > there is any functional difference between the two methods in SageMath. >
Both def and lambda are from Python (unlike f(x,y) = sin(x+y), say, which is Sage specific), so this question is heavily discussed online already: https://www.google.com/search?q=python+lambda+versus+def&rlz=1C5CHFA_enUS691US691&oq=python+lambda+versus+def&aqs=chrome..69i57j0.4431j0j7&sourceid=chrome&ie=UTF-8 > -Todd > > > -- > 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 [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/d/optout. -- William (http://wstein.org) -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
