toString

abstract override fun toString(): String

Returns the string representation of this collection.

Implementations of this function should behave like calling the Any.toString function on an Iterable.

Here's a simple usage example:

val collection: NotEmptyCollection<Int> = notEmptyListOf(1, 2, 3)
println(collection) // [1, 2, 3]

val list: Iterable<Int> = listOf(1, 2, 3)
println("$collection" == "$list") // true