Hi Jason,

On Sun, Dec 13, 2009 at 11:24 AM, Jason Grout
<jason-s...@creativetrax.com> wrote:

<SNIP>

> Do you think you could add a sentence or two in the filter section about
> using list comprehensions to do filters, like you did above in the map
> section?

The tutorial is updated with such an example. Say the problem is to
generate all positive integers between 1 and 20, inclusive, each of
which is relatively prime to 20. The conditional involves testing
whether two integers are coprime to each other. First, a solution is
provided using list comprehension. A second solution is provided using
filter().

-- 
Regards
Minh Van Nguyen

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to