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


NIP$ Search:

In Transient String Words in String Library

Word Name: NIP$
Type: Standard word
Data Stack Signature: -- / ss: s1 s2 -- s2
Return Stack Signature: --
Availability: V1.2
Description:

Removes the 2nd string from the string stack.

Example:

$" red" $" blue" NIP$ $.s \ place red and blue on the string stack, remove red, and display the string stack.

Comment:

A run-time error occurs if there are less than two strings on the string stack.

See Also: DROP$  SWAP$  OVER$ 

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