Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

427
Vistas
IntelliJ/Kotlin: What does the `^use` hint mean?

I'm using Kotlin in IntelliJ. I've written a fairly typical recursive function with a couple streams to zip up some files. I'm seeing a ^use and I don't know what IntelliJ is trying to tell me. (Hovering over such things usually teaches me something I didn't know about the language or warns me about a common mistake, but this provides no details)

Here is the screenshot of my function with an arrow pointing to the the hint.

The hint <code>^use</code> in front of a call to the file input stream copyTo extension function

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

This hint marks an expression that is a return value of a lambda, also saying which function the lambda is passed to. It reads as 'returned from the lambda passed to use { ... }'.

As the last expression in each lambda is the return value, this hint helps finding which lambda the expression is actually returned from.

You can disable these hints in the IDE preferences: Editor → General → Appearance → Show parameter hints – Configure → Language: Kotlin → Show lambda return expression hints (also available from the hint's right click menu), the other kinds of inline hints are also set up there.

UPD: In IntelliJ IDEA 2019.3 and newer, these options are placed under Editor → Inlay Hints → Kotlin.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda