aboutsummaryrefslogtreecommitdiff
path: root/docs/help/separator.html
blob: 931d635e026a9db2aae80ebf6852b3a7fba80ce6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<head>
  <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/>
  <link href="../style.css" rel="stylesheet"/>
  <title>BQN: Comma (,) and Diamond (⋄)</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="comma--and-diamond-"><a class="header" href="#comma--and-diamond-">Comma (<code><span class='Separator'>,</span></code>) and Diamond (<code><span class='Separator'></span></code>)</a></h1>
<h2 id="-or--separator"><a class="header" href="#-or--separator"><code><span class='Separator'>,</span></code> or <code><span class='Separator'></span></code>: Separator</a></h2>
<p><a class="fulldoc" href="../doc/token.html#separators">→full documentation</a></p>
<p>Separates statements in blocks, programs, and arrays. Characters <code><span class='Separator'>,</span></code> and <code><span class='Separator'></span></code> are interchangeable with each other and with newline.</p>
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=YSDihpAgMyAsIOKKoiBiIOKGkCAyCgoxIOKLhCAyICwgMwoK4p+oMSAsIDIg4ouEIDPin6kKCnsxIOKLhCAyIOKLhCAzfQ==">↗️</a><pre>    <span class='Value'>a</span> <span class='Gets'></span> <span class='Number'>3</span> <span class='Separator'>,</span> <span class='Function'></span> <span class='Value'>b</span> <span class='Gets'></span> <span class='Number'>2</span>
2

    <span class='Number'>1</span> <span class='Separator'></span> <span class='Number'>2</span> <span class='Separator'>,</span> <span class='Number'>3</span>
3

    <span class='Bracket'></span><span class='Number'>1</span> <span class='Separator'>,</span> <span class='Number'>2</span> <span class='Separator'></span> <span class='Number'>3</span><span class='Bracket'></span>
⟨ 1 2 3 ⟩

    <span class='Brace'>{</span><span class='Number'>1</span> <span class='Separator'></span> <span class='Number'>2</span> <span class='Separator'></span> <span class='Number'>3</span><span class='Brace'>}</span>
3
</pre>