aboutsummaryrefslogtreecommitdiff
path: root/docs/help/constant.html
blob: 10312562b7103fcc1dd518301002955c25f1b83f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<head>
  <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/>
  <link href="../style.css" rel="stylesheet"/>
  <title>BQN: Dot Above (`˙`)</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="dot-above-"><a class="header" href="#dot-above-">Dot Above (<code><span class='Modifier'>˙</span></code>)</a></h1>
<h2 id="-----constant"><a class="header" href="#-----constant"><code><span class='Function'>𝔽</span><span class='Modifier'>˙</span> <span class='Value'>𝕩</span></code>, <code><span class='Value'>𝕨</span> <span class='Function'>𝔽</span><span class='Modifier'>˙</span> <span class='Value'>𝕩</span></code>: Constant</a></h2>
<p>Returns a function that will always return <code><span class='Value'>𝕗</span></code>.</p>
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgImhlbGxvIiAoMSDLmSkgMgoKICAgImhlbGxvIiAoe/Cdlagr8J2VqX0gy5kpIDI=">↗️</a><pre>       <span class='String'>&quot;hello&quot;</span> <span class='Paren'>(</span><span class='Number'>1</span> <span class='Modifier'>˙</span><span class='Paren'>)</span> <span class='Number'>2</span>
1

       <span class='String'>&quot;hello&quot;</span> <span class='Paren'>(</span><span class='Brace'>{</span><span class='Value'>𝕨</span><span class='Function'>+</span><span class='Value'>𝕩</span><span class='Brace'>}</span> <span class='Modifier'>˙</span><span class='Paren'>)</span> <span class='Number'>2</span>
(function block)
</pre>