std: Rename Unfoldr to Unfold.
The `r` is not relevant, since there is only one direction of folding (unlike Haskell).
This commit is contained in:
parent
b3d50fc2c0
commit
4c2b480aae
2 changed files with 8 additions and 8 deletions
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
use std::iterator::*;
|
||||
|
||||
// Unfoldr had a bug with 'self that mean it didn't work
|
||||
// Unfold had a bug with 'self that mean it didn't work
|
||||
// cross-crate
|
||||
|
||||
fn main() {
|
||||
|
|
@ -24,7 +24,7 @@ fn main() {
|
|||
}
|
||||
}
|
||||
|
||||
let mut it = Unfoldr::new(0, count);
|
||||
let mut it = Unfold::new(0, count);
|
||||
let mut i = 0;
|
||||
for counted in it {
|
||||
assert_eq!(counted, i);
|
||||
Loading…
Add table
Add a link
Reference in a new issue