mozilla/rust — pull request #1826 by brson (2012-02-13 03:41:38+00:00)
Title: Various additions to core::iter

This adds min, max, reverse, count, and foldr functions to core::iter. foldr is implemented the slow way. I did some experimenting with a riterable interface but ran into some type checking problems.

The only thing interesting here is that I changed the signatures of foldl and foldr to move the accumulator value instead of copying.

@nikomatsakis have a look.