I don't think it would be so hard to do but this could break interoperability with Python, the language on which Sage is based. Besides it could make Sage like a dialect of python, something that sage devs don't want to do.
Unfortunately python is not a very friendly functional programming language, although it has some constructs that can help you if you like to do things in the functional style. Hope this helps, Carlos 2009/12/13 Alasdair <[email protected]> > In some CAS's (Sage, Maxima), the "lambda" construct is used for an > anonymous function: > > p=prime_range(30) > map(lambda x:x^2+1,p) > > whereas in others, an arrow notation is used: > > map(x->x^2+1,p) (Maple, MuPAD) > map(x+->x^2+1,p) (Axiom) > > I'm very fond of the convenience of arrow notation. Would it be very > hard to incorporate such a notation into the Sage parser? > > Thanks, > Alasdair > > -- > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected]<sage-support%[email protected]> > For more options, visit this group at > http://groups.google.com/group/sage-support > URL: http://www.sagemath.org > -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
