Generate built-in sources of arrays

Extract Array class into a separate file, move arrayOfNulls to Library.kt, fix
formatting and generate Arrays.kt
This commit is contained in:
Alexander Udalov
2014-02-25 19:22:48 +04:00
parent 6e23af2ba3
commit d5e2c4ad4c
8 changed files with 128 additions and 64 deletions
+10
View File
@@ -0,0 +1,10 @@
package kotlin
public class Array<reified T>(public val size: Int, init: Function1<Int, T>) {
public fun get(index: Int): T
public fun set(index: Int, value: T): Unit
public fun iterator(): Iterator<T>
public val indices: IntRange
}