strikt-core / strikt.assertions / single

single

fun <T : Collection<E>, E> Builder<T>.single(): Builder<E>

Maps this assertion to an assertion over the single element in the subject iterable.

See Also

Iterable.single