while

while p do x -- repeatedly evaluates x as long as the value of p remains true.

The value of the whole expression is always null.

i1 : i = 1; while i < 50000 do (<< i << " "; i = 2*i); << endl
1 2 4 8 16 32 64 128 256 512 1024 2048 4096 8192 16384 32768 

o3 = stdio

o3 : File

See also do.


topindexpreviousupnext