Skip to content

Commit 0512159

Browse files
committed
No need to fold before reducing
1 parent cce404c commit 0512159

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ pub fn top_few_from_stream(
2929
}
3030
counter
3131
})
32-
.fold(|| Counter::new(None), sum)
3332
.reduce(|| Counter::new(Some(num)), sum);
3433

3534
Ok(total.top())

0 commit comments

Comments
 (0)