MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / grouped

Function grouped

addons/misra.py:35–37  ·  view source on GitHub ↗

s -> (s0,s1,s2,...sn-1), (sn,sn+1,sn+2,...s2n-1), (s2n,s2n+1,s2n+2,...s3n-1), ...

(iterable, n)

Source from the content-addressed store, hash-verified

33import misra_9
34
35def grouped(iterable, n):
36 """s -> (s0,s1,s2,...sn-1), (sn,sn+1,sn+2,...s2n-1), (s2n,s2n+1,s2n+2,...s3n-1), ..."""
37 return zip(*[iter(iterable)] * n)
38
39
40INT_TYPES = ['bool', 'char', 'short', 'int', 'long', 'long long']

Callers 1

hasNumericEscapeSequenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected