This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kotlinx.coroutines.delay | |
import java.io.InputStream | |
import java.nio.ByteBuffer | |
import javax.sound.sampled.AudioFormat | |
import javax.sound.sampled.AudioInputStream | |
import javax.sound.sampled.AudioSystem | |
import javax.sound.sampled.Clip | |
import kotlin.math.sin | |
import kotlin.time.Duration | |
import kotlin.time.DurationUnit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@file:OptIn(ExperimentalContracts::class) @file:Suppress("SUBTYPING_BETWEEN_CONTEXT_RECEIVERS") | |
import kotlin.contracts.* | |
@Target(AnnotationTarget.FUNCTION) | |
annotation class Concept | |
inline fun <A, B, R> withContexts( | |
a: A, b: B, block: context(A, B) () -> R | |
): R { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@file:Suppress("unused", "MemberVisibilityCanBePrivate") | |
import org.jetbrains.kotlin.backend.common.CodegenUtil | |
import org.jetbrains.kotlin.codegen.JvmCodegenUtil | |
import org.jetbrains.kotlin.codegen.getCallLabelForLambdaArgument | |
import org.jetbrains.kotlin.codegen.isValueArgumentForCallToMethodWithTypeCheckBarrier | |
import org.jetbrains.kotlin.com.intellij.psi.PsiElement | |
import org.jetbrains.kotlin.config.LanguageVersionSettings | |
import org.jetbrains.kotlin.descriptors.* | |
import org.jetbrains.kotlin.js.translate.utils.BindingUtils |