blob: 2c405adea51b00b6715cb47250701824345eefd1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<head>
<link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/>
<link href="../style.css" rel="stylesheet"/>
<title>BQN: Top Left Corner (⌜)</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="top-left-corner-"><a class="header" href="#top-left-corner-">Top Left Corner (<code><span class='Modifier'>⌜</span></code>)</a></h1>
<h2 id="𝕨-𝔽-𝕩-table"><a class="header" href="#𝕨-𝔽-𝕩-table"><code><span class='Value'>𝕨</span> <span class='Function'>𝔽</span><span class='Modifier'>⌜</span> <span class='Value'>𝕩</span></code>: Table</a></h2>
<p>Apply <code><span class='Function'>𝔽</span></code> between every possible pair of the elements of the arguments.</p>
<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAgMeKAvzLigL8z4oC/NCAr4oycIDTigL814oC/NuKAvzcKCiAgICJhYmMiIOKIvuKMnCAieHl6Ig==">↗️</a><pre> <span class='Number'>1</span><span class='Ligature'>‿</span><span class='Number'>2</span><span class='Ligature'>‿</span><span class='Number'>3</span><span class='Ligature'>‿</span><span class='Number'>4</span> <span class='Function'>+</span><span class='Modifier'>⌜</span> <span class='Number'>4</span><span class='Ligature'>‿</span><span class='Number'>5</span><span class='Ligature'>‿</span><span class='Number'>6</span><span class='Ligature'>‿</span><span class='Number'>7</span>
┌─
╵ 5 6 7 8
6 7 8 9
7 8 9 10
8 9 10 11
┘
<span class='String'>"abc"</span> <span class='Function'>∾</span><span class='Modifier'>⌜</span> <span class='String'>"xyz"</span>
┌─
╵ "ax" "ay" "az"
"bx" "by" "bz"
"cx" "cy" "cz"
┘
</pre>
|