Add samples for sequence building API.

This commit is contained in:
Ilya Gorbunov
2017-03-01 20:56:10 +03:00
parent a04e6de047
commit 61e8848aa2
12 changed files with 251 additions and 4 deletions
@@ -1041,6 +1041,8 @@ public header inline fun <T> Iterable<T>.asIterable(): Iterable<T>
/**
* Creates a [Sequence] instance that wraps the original collection returning its elements when being iterated.
*
* @sample samples.collections.Sequences.Building.sequenceFromCollection
*/
public header fun <T> Iterable<T>.asSequence(): Sequence<T>