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

396
Vistas
Java to Kotlin auto converter: How to automatically convert Streams to Kotlin functions?

Using IntelliJ IDEA, I can automatically convert some Java code to Kotlin code. However, when Java code uses things like Stream, it only converts to Kotlin grammar, but it still uses Stream. But we know Kotlin's sequences/collections API is much, much simpler than Java's Stream API, so I would appreciate it if I could automatically convert Stream to Kotlin's API.

For example,

myList.stream().map(x -> x + 1).collect(Collectors.toList()); // java

How to auto convert to:

myList.map { it + 1 } // kotlin

(notice the .map here works on the Iterable, and there is no stream() and collect() anymore).

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

0

Here is the feature request for that in Kotlin plugin bug tracker: https://youtrack.jetbrains.com/issue/KTIJ-14393

Feel free to vote and follow.

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