This question was also asked 
at http://ask.sagemath.org/question/2903/newbie-lambda-operator, if one or 
both of you wants to put your answers there so that question can count as 
"answered".

On Thursday, August 15, 2013 7:42:40 AM UTC-4, Jason Grout wrote:
>
> On 8/15/13 5:24 AM, Jean Dubois wrote: 
> > pi = lambda x: pari(x).primepi() 
>
> lambda is a way of making a short function without having to name it. 
> The result of the above line is that pi(x) will call pari(x).primepi(). 
>   As David mentioned, the real work is done by Pari here. 
>
> More technical documentation for lambda functions is here: 
> http://docs.python.org/2/tutorial/controlflow.html#lambda-forms 
>
> Thanks, 
>
> Jason 
>
>
>

-- 
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 http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to