MCPcopy Index your code
hub / github.com/ipython/ipython / chop

Function chop

IPython/utils/data.py:48–50  ·  view source on GitHub ↗

Chop a sequence into chunks of the given size.

(seq: Sequence[T], size: int)

Source from the content-addressed store, hash-verified

46
47
48def chop(seq: Sequence[T], size: int) -> list[Sequence[T]]:
49 """Chop a sequence into chunks of the given size."""
50 return [seq[i : i + size] for i in range(0, len(seq), size)]

Callers 1

page_dumbFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…