noneWithNext

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

Returns true, if no consecutively following pair matches the predicate.