Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Ockajak committed Jul 12, 2024
1 parent 1359af9 commit 911aaea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/extensions/collectible.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@ where
Collection: FromIterator<Item> + Sized,
{
let size = values.len();
let mut combination = Vec::from_iter(iter::once(-2).chain(0..(k as i64)));
let mut combination = Vec::from_iter(iter::once(i64::MIN).chain(0..(k as i64)));
unfold((size + 1).saturating_sub(k), |current_slot| {
if *current_slot == 0 {
return None;
Expand Down
4 changes: 2 additions & 2 deletions src/extensions/sequence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1805,7 +1805,7 @@ where
{
let values = Vec::from_iter(iterator);
let size = values.len();
let mut combination = Vec::from_iter(iter::once(-2).chain(iter::repeat(0).take(k - 1)));
let mut combination = Vec::from_iter(iter::once(i64::MIN).chain(iter::repeat(0).take(k - 1)));
unfold((size + 1).saturating_sub(k), |current_slot| {
if *current_slot == 0 {
return None;
Expand Down Expand Up @@ -1860,7 +1860,7 @@ where
}
let values = Vec::from_iter(iterator);
let size = values.len();
let mut combination = Vec::from_iter(iter::once(-2).chain(iter::repeat(0).take(k - 1)));
let mut combination = Vec::from_iter(iter::once(i64::MIN).chain(iter::repeat(0).take(k - 1)));
unfold((size + 1).saturating_sub(k), |current_slot| {
if *current_slot == 0 {
return None;
Expand Down

0 comments on commit 911aaea

Please sign in to comment.