times ( ... n quot: ( ... -- ... ) -- ... )


Vocabulary
math

Inputs
nan integer
quota quotation


Outputs
None

Word description
Calls the quotation n times.

Notes
If you need to pass the current index to the quotation, use each-integer.

Examples
USING: io math ; 3 [ "Hi" print ] times
Hi Hi Hi


Definition


: times ( ... n quot: ( ... -- ... ) -- ... )
[ drop ] prepose each-integer ; inline