asString

inline fun <T> Iterable<T>.asString(): String(source)

Returns a string representation of this, with the format [e1, e2, ..., en] (that is, identical to Arrays.toString(Iterables.toArray(iterable))). Note that for most implementations of Collection, collection.toString() also gives the same result, but that behavior is not generally guaranteed.

See also


inline fun <T> Iterator<T>.asString(): String(source)

Returns a string representation of this, with the format [e1, e2, ..., en]. The iterator will be left exhausted: its hasNext method will return false.

See also