noneWithNextEnclosing

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

Returns true, if no consecutively following pair (including the enclosing pair) matches the predicate.