19 lines
522 B
Markdown
19 lines
522 B
Markdown
# Collection
|
|
|
|
Is a [Iterable] with known `size`, a finite [Iterable]:
|
|
|
|
class Collection : Iterable {
|
|
val size
|
|
}
|
|
|
|
| name | description |
|
|
|------------------------|------------------------------------------------------|
|
|
|
|
(1)
|
|
: `comparator(a,b)` should return -1 if `a < b`, +1 if `a > b` or zero.
|
|
|
|
See [List], [Set], [Iterable] and [Efficient Iterables in Kotlin Interop](EfficientIterables.md)
|
|
|
|
[Iterable]: Iterable.md
|
|
[List]: List.md
|
|
[Set]: Set.md |