anyWithNextEnclosing

inline fun <T> Iterable<T>.anyWithNextEnclosing(crossinline predicate: (a: T, b: T) -> Boolean): Boolean

Returns true, if at least one consecutively following pair (including the enclosing pair) matches the predicate.