#8465: move the document "Python Functional Programming for Mathematicians" to
the
classification "Thematic Tutorials"
-------------------------------+--------------------------------------------
Reporter: mvngu | Owner: mvngu
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-5.0
Component: documentation | Keywords: Sage HOWTOs
Author: Minh Van Nguyen | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-------------------------------+--------------------------------------------
Comment(by schilly):
i hope that's the correct place to point out some ideas i have:
(at least, i found them
very useful to know when i coded something recently)
1. reduce will be part of the functools module in python 3. might be
helpful to import it from there to make it forward compatible
http://docs.python.org/library/functools.html <- or at least you might
wanna add a link to that module in the bottom section.
2. http://docs.python.org/library/itertools.html#itertools.starmap is
quite cool if you have "izip"ed values for the function arguments.
i.e.
starmap(pow, [(2,5), (3,2), (10,3)]) --> 32 9 1000. it's like f(a,b) vs.
f(*c)
3. Besides that, have you explained the generator concept with the
"yield" keyword? I'm not sure if that counts as functional programming
but it is a nice topic in that context.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8465#comment:5>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en.