aboutsummaryrefslogtreecommitdiff
path: root/doc/global.md
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2017-05-31 16:49:56 +0200
committerDrahflow <drahflow@gmx.de>2017-05-31 16:49:56 +0200
commit061dd644cbd2fdddbb2e52dbe63683fa7a04b769 (patch)
treea69a50adf0b81e6878ddbcae30eef3ea6215b7e4 /doc/global.md
parent1fea64441786cb2affc755260c08c364ab483a4c (diff)
Implemented |=
Diffstat (limited to 'doc/global.md')
-rw-r--r--doc/global.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/doc/global.md b/doc/global.md
index b20b3bc..e207973 100644
--- a/doc/global.md
+++ b/doc/global.md
@@ -58,6 +58,17 @@ Executes the top stack element. See [execution.md](execution.md) for the full st
{ "Hello World!" dump } *
"Hello World!"
+`|=`
+----
+
+Takes a name and a function from the stack. Resolves the name without
+execution (like `|`) runs the function and then assigns the topmost
+stack element back to name (like `=`).
+
+ 0 ==long_variable_name
+ { 1 add } |=long_variable_name
+ long_variable_name dump # now 1
+
`[`
---