aboutsummaryrefslogtreecommitdiff
path: root/help/deduplicate_find.md
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2022-01-19 15:10:38 -0500
committerGitHub <noreply@github.com>2022-01-19 15:10:38 -0500
commitce364aeae795ca8a8e46e653b8024ac5a9ad0982 (patch)
tree7af238dbdb370a768f965066dadadd144cbd70f7 /help/deduplicate_find.md
parent8f0aa14fa695ff3aa3b3ed96c02fdb2ab99f272c (diff)
parentedddb9be0aa1f03c8608d3dabf7ccfea3fdde206 (diff)
Merge pull request #55 from razetime/master
Simple help pages for Primitive Symbols
Diffstat (limited to 'help/deduplicate_find.md')
-rw-r--r--help/deduplicate_find.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/help/deduplicate_find.md b/help/deduplicate_find.md
new file mode 100644
index 00000000..631638c4
--- /dev/null
+++ b/help/deduplicate_find.md
@@ -0,0 +1,33 @@
+*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/deduplicate_find.html).*
+
+# Epsilon Underbar (`⍷`)
+
+## `⍷ 𝕩`: Deduplicate
+
+Unique major cells of `𝕩`.
+
+ ⍷ 4‿5‿6‿6‿4‿7‿5
+
+ a ← 3‿3 ⥊ ↕6
+
+ ⍷ a
+
+
+
+## `𝕨 ⍷ 𝕩`: Find
+
+Mark the top left location of the occurrences of `𝕨` in `𝕩` with a 1, and other locations with 0.
+
+Result is the same shape as `(≢𝕨)↕x`.
+
+ "string" ⍷ "substring"
+
+ "loooooong" ⍷ "short"
+
+ a ← 7 (4|⋆˜)⌜○↕ 9
+
+ b ← (0‿3‿0≍0‿1‿0)
+
+ b ⍷ a
+
+