[1,2,3,4,5,6,7,8]
and a second (uniquified) list [2,5,7]
, and now we want to have a result of [[1,2],[2,3,4,5],[5,6,7],[7,8]]
, what would be the shortest to accomplish that? (NOTE: If the individual numbers are present more than once it doesn't matter, later on they are mapped to first/last as pair anyway.