Add sample for text version of chunked

This commit is contained in:
Scott Weber
2020-03-23 14:40:10 -04:00
committed by Ilya Gorbunov
parent 3f9892a49d
commit e8ee405cdb
3 changed files with 12 additions and 2 deletions
@@ -868,7 +868,8 @@ object Generators : TemplateGroupBase() {
@param size the number of elements to take in each ${f.snapshotResult}, must be positive and can be greater than the number of elements in this ${f.collection}.
"""
}
sample("samples.collections.Collections.Transformations.chunked")
specialFor(Iterables, Sequences) { sample("samples.collections.Collections.Transformations.chunked") }
specialFor(CharSequences) { sample("samples.text.Strings.chunked") }
specialFor(Iterables) { returns("List<List<T>>") }
specialFor(Sequences) { returns("Sequence<List<T>>") }
specialFor(CharSequences) { returns("List<String>") }