ContractBuilder
Provides a scope, where the functions of the contract DSL, such as returns, callsInPlace, etc., can be used to describe the contract of a function.
This type is used as a receiver type of the lambda function passed to the contract function.
Since Kotlin
1.3See also
Functions
Link copied to clipboard
abstract fun <R> callsInPlace(lambda: Function<R>, kind: InvocationKind = InvocationKind.UNKNOWN): CallsInPlace
Specifies that the function parameter lambda is invoked in place.
Since Kotlin 1.3
Link copied to clipboard
Specifies the effect that will be observed if the condition passed as a receiver argument holds.
Since Kotlin 2.2
Link copied to clipboard
Link copied to clipboard
Describes a situation when a function returns normally with any value that is not null.
Since Kotlin 1.3
Link copied to clipboard
Specifies that the function returns the result of the invocation of the function parameter lambda.
Since Kotlin 2.4