KT-20357 Add samples for elementAtOrNull
This commit is contained in:
committed by
Ilya Gorbunov
parent
ad9b700ec4
commit
7d5efe7f51
@@ -328,6 +328,7 @@ object Elements : TemplateGroupBase() {
|
||||
include(CharSequences, Lists)
|
||||
} builder {
|
||||
doc { "Returns ${f.element.prefixWithArticle()} at the given [index] or `null` if the [index] is out of bounds of this ${f.collection}." }
|
||||
sample("samples.collections.Collections.Usage.elementAtOrNull")
|
||||
returns("T?")
|
||||
body {
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user