From 3fd568e004693e447208e1842ab3b1d298eeb293 Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Fri, 27 May 2022 17:39:06 -0400 Subject: Cells modifier diagram --- doc/rank.md | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) (limited to 'doc') diff --git a/doc/rank.md b/doc/rank.md index fdf46637..83a0972b 100644 --- a/doc/rank.md +++ b/doc/rank.md @@ -2,6 +2,63 @@ # Cells and Rank + + The Cells modifier `˘` applies a function to major cells of its argument, much like [Each](map.md) applies to elements. Each result from `𝔽` becomes a major cell of the result, which means they must all have the same shape. The Rank modifier `⎉` generalizes this concept by allowing numbers provided by `𝔾` to specify a rank for each argument: non-negative to indicate the rank of each array passed to `𝔽`, or negative for the number of axes that are mapped over. Cells, which maps over one axis of each argument, is identical to `⎉¯1`. Rank is analogous to the [Depth modifier](depth.md#the-depth-modifier), but the homogeneous structure of an array eliminates some tricky edge cases found in Depth. -- cgit v1.2.3