Author skrah
Recipients Julian, r.david.murray, rhettinger, skrah, twouters
Date 2013-06-02.12:26:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I'd use foldl() in functional languages, where the default is part
of foldl() and not of max().

Translated to Python, I'm thinking of:

it = iter([328, 28, 2989, 22])
functools.reduce(max, it, next(it, None))

I agree with Raymond that a default arg in max() looks out of place.
Date User Action Args
2013-06-02 12:26:40skrahsetrecipients: + skrah, twouters, rhettinger, r.david.murray, Julian
2013-06-02 12:26:40skrahsetmessageid: <>
2013-06-02 12:26:40skrahlinkissue18111 messages
2013-06-02 12:26:40skrahcreate