From 2c50d91ec7eb8bc7890befe874a0b93729c2437e Mon Sep 17 00:00:00 2001 From: razetime Date: Wed, 19 Jan 2022 22:48:16 +0530 Subject: add h2s remove copied output, ascii filenames --- help/markfirst_memberof.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 help/markfirst_memberof.md (limited to 'help/markfirst_memberof.md') diff --git a/help/markfirst_memberof.md b/help/markfirst_memberof.md new file mode 100644 index 00000000..228d6a50 --- /dev/null +++ b/help/markfirst_memberof.md @@ -0,0 +1,29 @@ +*View this file with results and syntax highlighting [here](https://mlochbaum.github.io/BQN/help/markfirst_memberof.html).* + +# Element Of (`∊`) + +## `∊ 𝕩`: Unique Mask + +Mark the first occurrence of each major cell in `𝕩` with a 1, and all other occurrences with a 0. + + ∊ 4‿5‿6‿6‿4‿7‿5 + + a ← 3‿3 ⥊ ↕9 + + ∊ a + + + +## `𝕨 ∊ 𝕩`: Member Of + +Is each element in `𝕨` a major cell of `𝕩`? + + ⟨1⟩ ∊ ↕9 + + a ← 3‿3 ⥊ ↕9 + + ⟨0‿1‿2⟩ ∊ a + + ⟨1‿3 ⥊ 0‿1‿2⟩ ∊ a + + -- cgit v1.2.3