Fix typo
This commit is contained in:
parent
3bcc5b9f50
commit
ba1a591669
1 changed files with 1 additions and 1 deletions
2
utils.py
2
utils.py
|
@ -182,7 +182,7 @@ def consecutive( list_ ):
|
|||
index = last_consecutive( list_ )
|
||||
if index == len( list_ ) - 1:
|
||||
return [ list_ ]
|
||||
return consecutive( list_[ : i + 1 ] ) + consecutive( list_[ i + 1 : ] ) # happy recursion \o/
|
||||
return consecutive( list_[ : index + 1 ] ) + consecutive( list_[ index + 1 : ] ) # happy recursion \o/
|
||||
def last_consecutive( list_ ):
|
||||
"""
|
||||
return the last index of the first consecutive list
|
||||
|
|
Loading…
Reference in a new issue