]> git.lizzy.rs Git - rust.git/commit
Flip arguments to `std::iter::iterate`.
authorJonas Hietala <tradet.h@gmail.com>
Sun, 7 Sep 2014 17:06:13 +0000 (19:06 +0200)
committerJonas Hietala <tradet.h@gmail.com>
Sun, 7 Sep 2014 17:44:30 +0000 (19:44 +0200)
commit248319a52e27f66396e178ace4fad41fc9c81d1e
tree9c42ee7d854b5acae9cd133fab7bb04cd01d14e3
parent4067252def4251d7c2f4afc79ae1716093fe27ac
Flip arguments to `std::iter::iterate`.

Breaks `iterate(f, seed)`, use `iterate(seed, f)` instead.
The convention is to have the closure last.

Closes #17066.

[breaking-change]
src/libcore/iter.rs
src/libcoretest/iter.rs