Help with reduce().

Marcin 'Qrczak' Kowalczyk qrczak at knm.org.pl
Tue Jul 10 02:22:28 EDT 2001


10 Jul 2001 00:39:02 GMT, Quinn Dunkan <quinn at yak.ugcs.caltech.edu> pisze:

> You can fold from the right or left, but don't worry about that now
> (in an eager language like python it doesn't make any difference
> anyway).

It makes a difference if the function is not associative.

-- 
 __("<  Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZASTĘPCZA
QRCZAK



More information about the Python-list mailing list