
commonMain.io.kotest.inspectors.Inspectors.kt Maven / Gradle / Ivy
package io.kotest.inspectors
fun Array.forAll(fn: (T) -> Unit) = apply { forAll(this.asList(), fn) }
fun Collection.forAll(fn: (T) -> Unit) = apply { forAll(this, fn) }
fun Sequence.forAll(fn: (T) -> Unit) = apply { forAll(this.toList(), fn) }
fun Array.forOne(fn: (T) -> Unit) = apply { forOne(this.asList(), fn) }
fun Collection.forOne(fn: (T) -> Unit) = apply { forExactly(1, this, fn) }
fun Sequence.forOne(fn: (T) -> Unit) = apply { forOne(this.toList(), fn) }
fun Array.forExactly(k: Int, fn: (T) -> Unit) = apply { forExactly(k, this.asList(), fn) }
fun Collection.forExactly(k: Int, fn: (T) -> Unit) = apply { forExactly(k, this, fn) }
fun Sequence.forExactly(k: Int, fn: (T) -> Unit) = apply { forExactly(k, this.toList(), fn) }
fun Array.forSome(f: (T) -> Unit) = apply { forSome(this.asList(), f) }
fun Collection.forSome(fn: (T) -> Unit) = apply { forSome(this, fn) }
fun Sequence.forSome(fn: (T) -> Unit) = apply { forSome(this.toList(), fn) }
fun Array.forAny(f: (T) -> Unit) = apply { forAny(this, f) }
fun Collection.forAny(f: (T) -> Unit) = apply { forAny(this, f) }
fun Sequence.forAny(fn: (T) -> Unit) = apply { forAny(this.toList(), fn) }
fun Array.forAtLeastOne(f: (T) -> Unit) = apply { forAtLeastOne(this.asList(), f) }
fun Collection.forAtLeastOne(f: (T) -> Unit) = apply { forAtLeastOne(this, f) }
fun Sequence.forAtLeastOne(fn: (T) -> Unit) = apply { forAtLeastOne(this.toList(), fn) }
fun Array.forAtLeast(k: Int, f: (T) -> Unit) = apply { forAtLeast(k, this.asList(), f) }
fun Collection.forAtLeast(k: Int, fn: (T) -> Unit) = apply { forAtLeast(k, this, fn) }
fun Sequence.forAtLeast(k: Int, fn: (T) -> Unit) = apply { forAtLeast(k, this.toList(), fn) }
fun Array.forAtMostOne(f: (T) -> Unit) = apply { forAtMost(1, this.asList(), f) }
fun Collection.forAtMostOne(f: (T) -> Unit) = apply { forAtMost(1, this, f) }
fun Sequence.forAtMostOne(fn: (T) -> Unit) = apply { forAtMostOne(this.toList(), fn) }
fun Array.forAtMost(k: Int, f: (T) -> Unit) = apply { forAtMost(k, this.asList(), f) }
fun Collection.forAtMost(k: Int, fn: (T) -> Unit) = apply { forAtMost(k, this, fn) }
fun Sequence.forAtMost(k: Int, fn: (T) -> Unit) = apply { forAtMost(k, this.toList(), fn) }
fun Array.forNone(f: (T) -> Unit) = apply { forNone(this.asList(), f) }
fun Collection.forNone(f: (T) -> Unit) = apply { forNone(this, f) }
fun Sequence.forNone(fn: (T) -> Unit) = apply { forNone(this.toList(), fn) }
© 2015 - 2025 Weber Informatics LLC | Privacy Policy