first case.
I have a series of lines I want to select by “groups” of equals elements ,partition list made the sub groups but I want select the items in first branch the result is first item in every sub list instead of “first group”.
Second case
after to get the groups, the second group has to contain the las item from the first group so the third group has to contain the last item from the secont group and consecutive