/* * Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license * that can be found in the license/LICENSE.txt file. */ package kotlin // TODO: Ignore FunctionN interfaces public interface Function0 : Function { public operator fun invoke(): R } public interface Function1 : Function { public operator fun invoke(p1: P1): R } public interface Function2 : Function { public operator fun invoke(p1: P1, p2: P2): R } public interface Function3 : Function { public operator fun invoke(p1: P1, p2: P2, p3: P3): R } public inline fun arrayOfNulls(size: Int): Array = Array(size) public inline fun arrayOf(vararg a: T): Array = a.unsafeCast>() public inline fun booleanArrayOf(vararg a: Boolean) = a public inline fun byteArrayOf(vararg a: Byte) = a public inline fun shortArrayOf(vararg a: Short) = a public inline fun charArrayOf(vararg a: Char) = a public inline fun intArrayOf(vararg a: Int) = a public inline fun floatArrayOf(vararg a: Float) = a public inline fun doubleArrayOf(vararg a: Double) = a public inline fun longArrayOf(vararg a: Long) = a