rlaPHOENiX / pvsfunc

Unused variable found PYL-W0612
Anti-pattern
Major
1 occurrence in this check
Unused variable 'k'
58    Group a list of integers into sub-lists.
59    e.g. [1,2,3,5,6,7,9]: [[1,2,3],[5,6,7],[9]]
60    """
61    for k, g in groupby(enumerate(data), lambda x: x[0] - x[1]):62        yield list(map(itemgetter(1), g))