All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlinx.kandy.util.context.SelfInvocationContext.kt Maven / Gradle / Ivy

There is a newer version: 0.7.1-dev-54
Show newest version
/*
* Copyright 2020-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package org.jetbrains.kotlinx.kandy.util.context

/**
 * Base interface for context that can be invoked with [invoke] method, creating context
 * with this as a receiver and applies to this.
 */
public interface SelfInvocationContext

/**
 * Creates a context with this [SelfInvocationContext] as a receiver and applies to this.
 */
public operator fun  T.invoke(block: T.() -> Unit): T = apply(block)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy