[sage-support] Re: [newbie] lambda operator

2013-08-15 Thread Jean Dubois
Op donderdag 15 augustus 2013 13:42:40 UTC+2 schreef Jason Grout: > > 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

[sage-support] [newbie] lambda operator

2013-08-15 Thread Jean Dubois
Hello, I recently bought a book "adventures in group theory" which uses Sage. On page 14 it tells Sage allows functions to be defined using a 'lamba operator' and the following example is shown: pi = lambda x: pari(x).primepi() can someone here explain this in "newbie-language" I understand wha