Skip to content

Commit

Permalink
FIX: lazy enumerator split (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacarte authored Dec 22, 2021
1 parent 329087b commit c08deae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ pub fn lazy_expand<'a>(
let count = nodes.len();
// For each eclass, at least one node exists
let split_at = rnd.borrow_mut().gen_range(0, count);
let indices = (0..split_at).into_iter().chain(split_at..count);
let indices = (split_at..count).into_iter().chain(0..split_at);
let t = indices
.map(move |i| nodes[i].clone())
.map(move |l| {
Expand Down

0 comments on commit c08deae

Please sign in to comment.