semvec/pypi-packages huggingface dataset:
group-until 0.1.2
Group until the condition is met
License: MIT
Requires Python: >=3.8

# Group Until

I have rewritten this function way to many times.

## Usage

``` python
from group_until import group_until

indices = list(range(0, 10))
values = [1, 4, 3, 8, 1, 4, 9, 7, 5, 3]

groups = group_until(indices, values, limit=15)
# group == [[0, 1, 2], [3, 4, 5], [6], [7, 8, 9]]
```

## Note

This package probably has the same vibe as https://www.npmjs.com/package/is-even.