Files
rust/src/libcore
Aaron Turon 1bde6e3fcb Rename Iterator::len to count
This commit carries out the request from issue #14678:

> The method `Iterator::len()` is surprising, as all the other uses of
> `len()` do not consume the value. `len()` would make more sense to be
> called `count()`, but that would collide with the current
> `Iterator::count(|T| -> bool) -> unit` method. That method, however, is
> a bit redundant, and can be easily replaced with
> `iter.filter(|x| x < 5).count()`.
> After this change, we could then define the `len()` method
> on `iter::ExactSize`.

Closes #14678.

[breaking-change]
2014-06-06 19:51:31 -07:00
..
2014-06-05 13:55:10 -07:00
2014-06-02 12:37:54 +02:00
2014-05-30 15:52:24 -07:00
2014-05-13 23:59:03 -07:00
2014-06-05 13:55:10 -07:00
2014-06-01 10:31:27 -07:00
2014-05-30 15:52:23 -07:00
2014-06-06 19:51:31 -07:00
2014-05-31 21:59:50 -07:00
2014-06-05 13:55:10 -07:00
2014-06-01 10:31:27 -07:00
2014-06-01 10:31:27 -07:00
2014-05-23 15:28:30 -07:00
2014-06-06 19:51:31 -07:00
2014-06-06 19:51:31 -07:00
2014-06-01 10:31:27 -07:00
2014-05-11 01:13:02 -07:00