From d2f33fe305f6a2a4ad2a18f1eafc4e1e4741bd8c Mon Sep 17 00:00:00 2001 From: Drahflow Date: Mon, 21 Aug 2017 07:52:18 +0200 Subject: Added _' for indexed access to stack --- doc/global.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'doc') diff --git a/doc/global.md b/doc/global.md index e207973..99dc65c 100644 --- a/doc/global.md +++ b/doc/global.md @@ -311,6 +311,19 @@ Duplicates the top stack element. 0000000000000001 +`_'` +--- + +Takes from the top of the stack an integer. This is used as +an index into the rest of the stack (starting from top). +The specified stack element is duplicated to the top of the stack. + + /a /b /c 1 _' dump dump dump dump + "b" + "c" + "b" + "a" + `-` --- -- cgit v1.2.3