invoke

Platform and version requirements: JVM (1.4), JS (1.4), Native (1.4)
@ExperimentalStdlibApi operator fun <T, R> DeepRecursiveFunction<T, R>.invoke(
    value: T
): R

Initiates a call to this deep recursive function, forming a root of the call tree.

This operator should not be used from inside of DeepRecursiveScope as it uses the call stack slot for initial recursive invocation. From inside of DeepRecursiveScope use callRecursive.

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/invoke.html