Las funciones inline pueden tener varios componentes de salida y por tanto devolver varios valores.
Inline functions can have multiple outputs and thus return multiple values.
Además de funciones inline también puede crear llamadas a funciones normales que admitan recursividad.
As an alternative to inline functions, you can also create regular function calls that support recursion.
Las funciones inline siempre se empaquetan si sus instancias se crean como llamadas (lo que ocurre, por ejemplo, si los procesos inline están desactivados o si se toma una dirección de función).
Inline functions are always packaged if they are instantiated as calls (which occurs, for example, if inlining is off or you take a function address).
En el artículo anterior, aprendiste usos avanzados de funciones, como funciones de extensión, closures, funciones de orden superior, y funciones inline en Kotlin.
In the previous article, you learned advanced uses of functions, such as extension functions, closures, higher-order functions, and inline functions in Kotlin.
Las funciones inline no permiten establecer un contexto de prioridad en un parámetro (véase Nodo de contexto prioritario/elemento).
Inline functions do not support setting a priority context on a parameter, see Priority Context node/item.
¡Clases selladas! ¡Funciones inline!
Sealed classes! inline functions!
Tampoco es compatible añadir funciones inline definidas por el usuario ni combinar componentes con una función de nodo.
Adding inline user-defined functions or join components to a node function is also not supported.
Las funciones inline y de tipo estándar se comportan de forma diferente a la hora de generar código, en cuanto a recursividad y al tener varios parámetros de salida.
Inline and regular functions behave differently in terms of code generation, recursiveness, and the ability to have multiple output parameters.
Las funciones inline se obtienen de todas las instancias en las que aparecen en el código generado, lo que hace que el código sea más largo pero también algo más rápido.
Regular functions Inline functions are extracted in all instances where they occur in generated code, which makes the code longer but also slightly faster.
La inclusión de funciones inline, por ejemplo, elimina la sobrecarga de llamadas a funciones pero, si se incluye demasiado código en línea, el programa puede crecer tanto que hará que aumente el número de errores de página de la memoria virtual.
Inlining functions, for example, eliminates the overhead of function calls, but inlining too much code may make your program so large that the number of virtual-memory page faults increases.
Potentieel gevoelige of ongepaste informatie
Er worden alleen voorbeelden gegeven om u te helpen het woord of de woordcombinatie waarop u hebt gezocht, te vertalen. Deze worden niet door ons geselecteerd of gevalideerd en kunnen ongepaste taal bevatten. Wij vragen u melding te maken van voorbeelden die dienen te worden aangepast of verwijderd. Vertalingen met grof of informeel taalgebruik worden meestal rood of oranje gemarkeerd.