proprify group_consecutive
nsplit function for lists