blob: 13a162da2fca1886219f93e18681446aa53bf928 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<head>
<link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../style.css" rel="stylesheet"/>
<title>BQN: Leftwards Arrow With Hook (←)</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-with-hook-"><a class="header" href="#leftwards-arrow-with-hook-">Leftwards Arrow With Hook (<code><span class='Gets'>←</span></code>)</a></h1>
<h2 id="n--v-change"><a class="header" href="#n--v-change"><code><span class='Value'>n</span> <span class='Gets'>↩</span> <span class='Value'>v</span></code>: Change</a></h2>
<p>Changes the value of variable with name <code><span class='Value'>n</span></code> to value <code><span class='Value'>v</span></code>.</p>
<p>Variable <code><span class='Value'>n</span></code> must already exist.</p>
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=YSDihqkgMQoK4oqiIGIg4oaQIDMKCuKKoiBiIOKGqSAiQmUgdGhlIGNoYW5nZSB5b3Ugd2lzaCB0byBzZWUgaW4gdGhlIHdvcmxkLiI=">↗️</a><pre> <span class='Value'>a</span> <span class='Gets'>↩</span> <span class='Number'>1</span>
<span class='Error'>Error: Undefined identifier</span>
<span class='Function'>⊢</span> <span class='Value'>b</span> <span class='Gets'>←</span> <span class='Number'>3</span>
3
<span class='Function'>⊢</span> <span class='Value'>b</span> <span class='Gets'>↩</span> <span class='String'>"Be the change you wish to see in the world."</span>
"Be the change you wish to see in the world."
</pre>
|