n class="token operator"> -&gt; </span><span class="token keyword"></span><a href="https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html">Unit</a></span></span><span class="token punctuation">)</span></div><p class="paragraph">Asserts on each item in the iterable, passing if at least <code class="lang-kotlin">times</code> items pass. The given lambda will be run for each item.</p><div class="sample-container"><pre><code class="block lang-kotlin" theme="idea">assert(listOf(-1, 1, 2)).atLeast(2