HF RL Explorer

Task: Implement an Iterable Chunking Function

Task: Implement an Iterable Chunking Function: a task in Terminal-Lego-15k (Harbor dataset). You need to implement a Python function called batch (or chunked ) that takes an iterable and splits it into constant-size chunks. This is a common utility function needed for processing large datasets in…

The task

You need to implement a Python function called `batch` (or `chunked`) that takes an iterable and splits it into constant-size chunks. This is a common utility function needed for processing large datasets in batches.

Part of PrimeIntellect/Terminal-Lego-15k.