diff options
Diffstat (limited to 'docs/help/define.html')
| -rw-r--r-- | docs/help/define.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/help/define.html b/docs/help/define.html new file mode 100644 index 00000000..d5399cd1 --- /dev/null +++ b/docs/help/define.html @@ -0,0 +1,22 @@ +<head> + <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/> + <link href="../style.css" rel="stylesheet"/> + <title>BQN: Leftwards Arrow (`←`)</title> +</head> +<div class="nav">(<a href="https://github.com/mlochbaum/BQN">github</a>) / <a href="../index.html">BQN</a> / <a href="index.html">help</a></div> +<h1 id="leftwards-arrow-"><a class="header" href="#leftwards-arrow-">Leftwards Arrow (<code><span class='Gets'>←</span></code>)</a></h1> +<h2 id="n--v-define"><a class="header" href="#n--v-define"><code><span class='Value'>n</span> <span class='Gets'>←</span> <span class='Value'>v</span></code>: Define</a></h2> +<p>Defines a new variable with name <code><span class='Value'>n</span></code> and value <code><span class='Value'>v</span></code>.</p> +<p>Variable <code><span class='Value'>n</span></code> must not already exist.</p> +<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=4oqiIGEg4oaQIDEKCuKKoiBiIOKGkCAz4oC/MyDipYogNQoKQyDihpAg4oaR">↗️</a><pre> <span class='Function'>⊢</span> <span class='Value'>a</span> <span class='Gets'>←</span> <span class='Number'>1</span> +1 + + <span class='Function'>⊢</span> <span class='Value'>b</span> <span class='Gets'>←</span> <span class='Number'>3</span><span class='Ligature'>‿</span><span class='Number'>3</span> <span class='Function'>⥊</span> <span class='Number'>5</span> +┌─ +╵ 5 5 5 + 5 5 5 + 5 5 5 + ┘ + + <span class='Function'>C</span> <span class='Gets'>←</span> <span class='Function'>↑</span> +</pre> |
