Handbook
Glossary
forever ( quot -- )
Extra combinators
Prev:
thrice ( quot -- )
Next:
cond-case ( assoc -- quot )
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