aboutsummaryrefslogtreecommitdiff
path: root/docs/help/markfirst_memberof.html
diff options
context:
space:
mode:
authorrazetime <raghuallthetime@hotmail.com>2022-01-19 22:48:16 +0530
committerrazetime <raghuallthetime@hotmail.com>2022-01-19 22:48:16 +0530
commit2c50d91ec7eb8bc7890befe874a0b93729c2437e (patch)
treeeb621b86b3c8269ab2dd63bd3c628acdf3521059 /docs/help/markfirst_memberof.html
parent6c111f1e71e945f66977aecc3322318aa21beacc (diff)
add h2s remove copied output, ascii filenames
Diffstat (limited to 'docs/help/markfirst_memberof.html')
-rw-r--r--docs/help/markfirst_memberof.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/docs/help/markfirst_memberof.html b/docs/help/markfirst_memberof.html
new file mode 100644
index 00000000..82ccf437
--- /dev/null
+++ b/docs/help/markfirst_memberof.html
@@ -0,0 +1,35 @@
+<head>
+ <link href="../favicon.ico" rel="shortcut icon" type="image/x-icon"/>
+ <link href="../style.css" rel="stylesheet"/>
+ <title>BQN: Element Of (`∊`)</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="element-of-"><a class="header" href="#element-of-">Element Of (<code><span class='Function'>∊</span></code>)</a></h1>
+<h2 id="--unique-mask"><a class="header" href="#--unique-mask"><code><span class='Function'>∊</span> <span class='Value'>𝕩</span></code>: Unique Mask</a></h2>
+<p>Mark the first occurrence of each major cell in <code><span class='Value'>𝕩</span></code> with a 1, and all other occurrences with a 0.</p>
+<a class="replLink" title="Open in the REPL" target="_blank" href="https://mlochbaum.github.io/BQN/try.html#code=ICAg4oiKIDTigL814oC/NuKAvzbigL804oC/N+KAvzUKCiAgIGEg4oaQIDPigL8zIOKliiDihpU5CgogICDiiIogYQ==">↗️</a><pre> <span class='Function'>∊</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'>6</span><span class='Ligature'>‿</span><span class='Number'>4</span><span class='Ligature'>‿</span><span class='Number'>7</span><span class='Ligature'>‿</span><span class='Number'>5</span>
+⟨ 1 1 1 0 0 1 0 ⟩
+
+ <span class='Value'>a</span> <span class='Gets'>←</span> <span class='Number'>3</span><span class='Ligature'>‿</span><span class='Number'>3</span> <span class='Function'>⥊</span> <span class='Function'>↕</span><span class='Number'>9</span>
+
+ <span class='Function'>∊</span> <span class='Value'>a</span>
+⟨ 1 1 1 ⟩
+</pre>
+<h2 id="---member-of"><a class="header" href="#---member-of"><code><span class='Value'>𝕨</span> <span class='Function'>∊</span> <span class='Value'>𝕩</span></code>: Member Of</a></h2>
+<p>Is each element in <code><span class='Value'>𝕨</span></code> a major cell of <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=ICAg4p+oMeKfqSDiiIog4oaVOQoKICAgYSDihpAgM+KAvzMg4qWKIOKGlTkKCiAgIOKfqDDigL8x4oC/MuKfqSDiiIogYQoKICAg4p+oMeKAvzMg4qWKIDDigL8x4oC/MuKfqSDiiIogYQ==">↗️</a><pre> <span class='Bracket'>⟨</span><span class='Number'>1</span><span class='Bracket'>⟩</span> <span class='Function'>∊</span> <span class='Function'>↕</span><span class='Number'>9</span>
+⟨ 1 ⟩
+
+ <span class='Value'>a</span> <span class='Gets'>←</span> <span class='Number'>3</span><span class='Ligature'>‿</span><span class='Number'>3</span> <span class='Function'>⥊</span> <span class='Function'>↕</span><span class='Number'>9</span>
+<span class='Error'>Error: Redefinition</span>
+
+ <span class='Bracket'>⟨</span><span class='Number'>0</span><span class='Ligature'>‿</span><span class='Number'>1</span><span class='Ligature'>‿</span><span class='Number'>2</span><span class='Bracket'>⟩</span> <span class='Function'>∊</span> <span class='Value'>a</span>
+┌·
+· 0
+ ┘
+
+ <span class='Bracket'>⟨</span><span class='Number'>1</span><span class='Ligature'>‿</span><span class='Number'>3</span> <span class='Function'>⥊</span> <span class='Number'>0</span><span class='Ligature'>‿</span><span class='Number'>1</span><span class='Ligature'>‿</span><span class='Number'>2</span><span class='Bracket'>⟩</span> <span class='Function'>∊</span> <span class='Value'>a</span>
+┌·
+· 0
+ ┘
+</pre>