A common way to control a while loop is to test whether a list has any elements.
Un forma común para controlar un bucle while es probar si una lista tiene algún elemento.
So the test for the while loop is simply
Así que la prueba en el bucle while es simple
The purpose of a while loop is to execute a statement or code block repeatedly as long as an expression is true.
El propósito de un bucle while es para ejecutar una instrucción o bloque de código en varias ocasiones, siempre y cuando la expresión es verdadera.
The version that uses a while loop is easy to understand, so I am going to adapt that.
La versión que utiliza un bucle while es fácil de comprender, así que voy a adaptarla.
Another common way to write a while loop is to write the test so that it determines whether a counter is greater than zero.
Otra manera común de escribir un bucle while es con una prueba que determine si un contador es mayor que cero.
Moreover, the whole of the while loop is a list within the body of the let.
Además, todo el bucle while es una lista dentro del cuerpo del let.
In the most common use of the function, the value of the argument is 1, so the body of the while loop is evaluated exactly once, and the cursor moves forward one paragraph.
En el uso más común de la función el valor del argumento es 1, por lo que el cuerpo del bucle while se evalúa exactamente una vez, y el cursor avanza hacia adelante un párrafo.
A while loop is used when a program needs to loop until a particular condition occurs.
Un bucle while se usa cuando el programa debe iterarse hasta que se alcanza una determinada condición.
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Înregistrează-te pentru a accesa mai multe exemple