Update doc comments of utility functions on lists
This commit is contained in:
@@ -57,7 +57,7 @@ public inline fun <in T> List<T>.sort(transform: fun(T) : java.lang.Comparable<*
|
||||
*/
|
||||
|
||||
/**
|
||||
* Returns the first item in the list
|
||||
* Returns the first item in the list or null if the list is empty
|
||||
*
|
||||
* @includeFunctionBody ../../test/ListTest.kt first
|
||||
*/
|
||||
@@ -66,7 +66,7 @@ val <T> List<T>.first : T?
|
||||
|
||||
|
||||
/**
|
||||
* Returns the last item in the list
|
||||
* Returns the last item in the list or null if the list is empty
|
||||
*
|
||||
* @includeFunctionBody ../../test/ListTest.kt last
|
||||
*/
|
||||
@@ -85,7 +85,7 @@ val <T> List<T>.lastIndex : Int
|
||||
get() = this.size - 1
|
||||
|
||||
/**
|
||||
* Returns the first item in the list
|
||||
* Returns the first item in the list or null if the list is empty
|
||||
*
|
||||
* @includeFunctionBody ../../test/ListTest.kt head
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user