Provide asIterable also for CharSequences, Maps and Iterables.
KT-10152 Fixed
This commit is contained in:
@@ -1761,6 +1761,13 @@ public fun <T> Iterable<T>.joinToString(separator: String = ", ", prefix: String
|
||||
return joinTo(StringBuilder(), separator, prefix, postfix, limit, truncated, transform).toString()
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns this collection as an [Iterable].
|
||||
*/
|
||||
public fun <T> Iterable<T>.asIterable(): Iterable<T> {
|
||||
return this
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a sequence from the given collection.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user