<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>


ROLL Search:

In Stack Words in TurboForth Kernal

Word Name: ROLL
Type: Standard word
Data Stack Signature: +n -- n
Return Stack Signature: --
Availability: V1.0  V1.1  V1.2
Description:

Rolls the stack left +n items. Items rolled out to the left wrap around to the top of the stack.

Example:

1 2 3 4 5 ok:5

4 roll ok:5

.s 2 3 4 5 1 ok:5

Comment:

0 ROLL is a null (no change) operation.

See Also: None listed

<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>