Added Int.indices extension property.
This commit is contained in:
@@ -13,6 +13,9 @@ val Collection<*>.empty : Boolean
|
||||
val Collection<*>.indices : IntRange
|
||||
get() = 0..size-1
|
||||
|
||||
val Int.indices: IntRange
|
||||
get() = 0..this-1
|
||||
|
||||
/**
|
||||
* Converts the collection to an array
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user