From 4c1292ee8e27e59891a60c2f1bf3c326d4dba51f Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Sun, 13 Jun 2021 22:14:24 -0400 Subject: Add self-comparison function diagram --- doc/selfcmp.md | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) (limited to 'doc') diff --git a/doc/selfcmp.md b/doc/selfcmp.md index e17c8c3d..fdb43090 100644 --- a/doc/selfcmp.md +++ b/doc/selfcmp.md @@ -2,6 +2,43 @@ # Self-comparison functions + + BQN has four self-comparison functions, Classify (`⊐`), Occurrence Count (`⊒`), Mark Firsts (`∊`), and Deduplicate (`⍷`). Each of these is a monadic function that obtains its result by comparing each major cell of the argument (which must have rank at least 1) to the earlier major cells with [match](match.md). For example, Mark Firsts indicates the cells that don't match any earlier cell, making them the first of their kind. ∊ "abaacb" -- cgit v1.2.3