forever ( quot -- ) - Factor Documentation

forever ( quot -- )
Extra combinators



Vocabulary
combinators .extras

Inputs
quot a quotation


Outputs
None

Word description
Calls a quotation in an endless loop.

Examples
The following two lines are equivalent:
[ q ] forever [ t ] [ q ] while


Definition
USING: kernel ;

IN: combinators.extras

: forever ( quot -- ) [ t ] compose loop ; inline

AltStyle によって変換されたページ (->オリジナル) /