diff options
| author | razetime <raghuallthetime@hotmail.com> | 2022-01-20 11:57:50 +0530 |
|---|---|---|
| committer | razetime <raghuallthetime@hotmail.com> | 2022-01-20 11:57:50 +0530 |
| commit | f3d45a1ca914d59968531a6d5c409d80b73e53c3 (patch) | |
| tree | bc89e3b80c84d854f382e03fdbb5a43e08d791b8 /docs/help/export.html | |
| parent | 97e5db7fa0bf2389589a99ccd26cf84c1e0ced73 (diff) | |
complete REPL help for symbols
Diffstat (limited to 'docs/help/export.html')
| -rw-r--r-- | docs/help/export.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/docs/help/export.html b/docs/help/export.html new file mode 100644 index 00000000..dced1f53 --- /dev/null +++ b/docs/help/export.html @@ -0,0 +1,23 @@ +<head> + <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/> + <link href="../style.css" rel="stylesheet"/> + <title>BQN: Leftward Double 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="leftward-double-arrow-"><a class="header" href="#leftward-double-arrow-">Leftward Double Arrow (<code><span class='Gets'>⇐</span></code>)</a></h1> +<h2 id="n--v-export-definition"><a class="header" href="#n--v-export-definition"><code><span class='Value'>n</span> <span class='Gets'>⇐</span> <span class='Value'>v</span></code>: Export Definition</a></h2> +<p>Define a variable with name <code><span class='Value'>n</span></code> and export it from the current namespace or program's scope.</p> +<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=bnMg4oaQIHsgZXhwb3J0ZWQg4oeQIDUsIHVuZXhwb3J0ZWQg4oaQIDB9Cm5zLmV4cG9ydGVkCm5zLnVuZXhwb3J0ZWQ=">↗️</a><pre> <span class='Value'>ns</span> <span class='Gets'>←</span> <span class='Brace'>{</span> <span class='Value'>exported</span> <span class='Gets'>⇐</span> <span class='Number'>5</span><span class='Separator'>,</span> <span class='Value'>unexported</span> <span class='Gets'>←</span> <span class='Number'>0</span><span class='Brace'>}</span> + <span class='Value'>ns.exported</span> +5 + <span class='Value'>ns.unexported</span> +<span class='Error'>Error: No key found</span> +</pre> +<h2 id="--export-names"><a class="header" href="#--export-names"><code><span class='Value'>𝕨</span> <span class='Gets'>⇐</span></code>: Export names</a></h2> +<p>Export the names given in <code><span class='Value'>𝕩</span></code> from the current namespace or program's scope. Names must be defined.</p> +<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=bnMxIOKGkCB7IOKfqGFsc29leHBvcnRlZOKfqeKHkCwgZXhwb3J0ZWQg4oeQIDUsIGFsc29leHBvcnRlZCDihpAgMH0KbnMxLmV4cG9ydGVkCm5zMS5hbHNvZXhwb3J0ZWQ=">↗️</a><pre> <span class='Value'>ns1</span> <span class='Gets'>←</span> <span class='Brace'>{</span> <span class='Bracket'>⟨</span><span class='Value'>alsoexported</span><span class='Bracket'>⟩</span><span class='Gets'>⇐</span><span class='Separator'>,</span> <span class='Value'>exported</span> <span class='Gets'>⇐</span> <span class='Number'>5</span><span class='Separator'>,</span> <span class='Value'>alsoexported</span> <span class='Gets'>←</span> <span class='Number'>0</span><span class='Brace'>}</span> + <span class='Value'>ns1.exported</span> +5 + <span class='Value'>ns1.alsoexported</span> +0 +</pre> |
