sage: def test(n):
....:     print("n:", n)
....:     return n
....: 
sage: l = [2,3,5,0,7,11,17,19]
sage: prod(map(test, l))
n: 2
n: 3
n: 5
n: 0
n: 7
n: 11
n: 17
n: 19
0
I expected that it would return 0 once we multiply with 0.

Martin

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/1a7f872c-4d5d-4126-b592-0f60f9d1edfen%40googlegroups.com.

Reply via email to