KT-20357 Add samples for elementAt
This commit is contained in:
committed by
Ilya Gorbunov
parent
40b3514a47
commit
ad9b700ec4
@@ -242,6 +242,7 @@ object Elements : TemplateGroupBase() {
|
||||
} builder {
|
||||
val index = '$' + "index"
|
||||
doc { "Returns ${f.element.prefixWithArticle()} at the given [index] or throws an [IndexOutOfBoundsException] if the [index] is out of bounds of this ${f.collection}." }
|
||||
sample("samples.collections.Collections.Usage.elementAt")
|
||||
returns("T")
|
||||
body {
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user