blob: 133f2c714c184933b59fff919132cf6550611508 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<head>
<link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../style.css" rel="stylesheet"/>
<title>BQN: Mathematical Left Angle Bracket (⟨)</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="mathematical-left-angle-bracket-"><a class="header" href="#mathematical-left-angle-bracket-">Mathematical Left Angle Bracket (<code><span class='Bracket'>⟨</span></code>)</a></h1>
<h2 id="--begin-list"><a class="header" href="#--begin-list"><code><span class='Bracket'>⟨</span> <span class='Value'>...</span></code>: Begin list</a></h2>
<p>Starts a list. Inner elements must be separated by <code><span class='Separator'>,</span></code> or <code><span class='Separator'>⋄</span></code>.
Lists can be nested in other lists.</p>
<p>Must end with a corresponding <code><span class='Bracket'>⟩</span></code>.</p>
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=4p+oMSwgMiwgM+KfqQoK4p+oKyDii4QgLSDii4QgNTbin6k=">↗️</a><pre> <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='Bracket'>⟨</span><span class='Function'>+</span> <span class='Separator'>⋄</span> <span class='Function'>-</span> <span class='Separator'>⋄</span> <span class='Number'>56</span><span class='Bracket'>⟩</span>
⟨ + - 56 ⟩
</pre>
|