Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/subbarayudu-j/TheAlgorithms-Python
/ chunker
Function
chunker
ciphers/playfair_cipher.py:4–10 ·
view source on GitHub ↗
(seq, size)
Source
from the content-addressed store, hash-verified
2
import
itertools
3
4
def
chunker(seq, size):
5
it = iter(seq)
6
while
True:
7
chunk = tuple(itertools.islice(it, size))
8
if
not chunk:
9
return
10
yield
chunk
11
12
13
Callers
2
encode
Function · 0.85
decode
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected