v1.8.10
  • Solutions
    • Multiplatform Mobile
    • Multiplatform for other platforms
    • Server-side
    • Web frontend
    • Data science
    • Android
  • Docs
  • Community
  • Teach
  • Play
    • Playground
    • Hands-on
    • Examples
    • Koans
← Docs
kotlin-stdlib / kotlin / invoke

invoke

Common
JVM
JS
Native
1.7
operator fun <T, R> DeepRecursiveFunction<T, R>.invoke(
    value: T
): R

(source)

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.

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Kotlin™ is protected under the Kotlin Foundation and licensed under the Apache 2 license.
Supported and developed by JetBrains