anyWithNext

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

Returns true, if at least one consecutively following pair matches the predicate.