Add map() documentation sample
* docs: add map() sample * docs: add samples for Map and CharSequence * docs: add another sample for Maps.map()
This commit is contained in:
@@ -92,6 +92,19 @@ object Mapping : TemplateGroupBase() {
|
||||
to each ${f.element} in the original ${f.collection}.
|
||||
"""
|
||||
}
|
||||
|
||||
specialFor(Iterables, Sequences, ArraysOfObjects, ArraysOfPrimitives, ArraysOfUnsigned) {
|
||||
sample("samples.collections.Collections.Transformations.map")
|
||||
}
|
||||
|
||||
specialFor(Maps) {
|
||||
sample("samples.collections.Maps.Transformations.mapToList")
|
||||
}
|
||||
|
||||
specialFor(CharSequences) {
|
||||
sample("samples.text.Strings.map")
|
||||
}
|
||||
|
||||
typeParam("R")
|
||||
returns("List<R>")
|
||||
body(Iterables) {
|
||||
|
||||
Reference in New Issue
Block a user