<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>
In Transient String Words in String Library
Places a copy of string n to the top of the string stack. Allows the string stack to be indexed as an array.
$" red" 0 pick$ $.s \ dumps the string stack. The top two strings are red red
$" red" 0 pick$ $.s
An error occurs if n lies outside the range of depth$.
depth$
0 PICK$ is equivalent to DUP$. 1 PICK$ is equivalent to OVER$.
0 PICK$
DUP$
1 PICK$
OVER$