hasSameSizeAs

fun <T, K> Collection<T>.hasSameSizeAs(vararg others: Collection<K>): Boolean

Returns true, if all lists have the same number of elements.

Receiver

first list used for comparing the sizes of the lists

Return

true, if all lists have the same size

Parameters

others

other lists used for the size comparison