zipWithNextEnclosing

Returns a list of pairs for each two adjacent elements in this collection including a pair of the last and first element.

Receiver

iterable containing all elements which are zipped

Return

list of all pairs of two adjacent elements (with last and first element pair), whereby the returned list is empty if the receiver contains less than two elements