UNIQUE and SORT list the regions of the sales data and FILTER the quarters over 300 units, spilling; a changed value resizes the spill, and the context line says where a spilled value comes from. Shown in arrays.md and the README, which also names arrays in its tour.
- commit
- 6b2473fcac4c7155294e665d37f5fe57240843e4
- parent
- 3e632a4abbec94550ac19c0ed03232bb7df102c1
- author
- Dami <dami.etoile@gmail.com>
| M | README.md | 5 | ++++- |
| A | demos/ | 33 | ++++++++++++++++++++++++++++++ |
| M | docs/ | 2 | ++ |
| A | docs/ | bin |
@@ -26,7 +26,8 @@ rest: building from a clone, importing files, `012 serve` and settings.
2626 2727 - **Formulas as in Sheets**, with [Sheets' functions](docs/reference/functions.md),2828 suggestions and argument hints, pointing at cells with the arrows or the29- mouse, named ranges, references between sheets, optional decimal29+ mouse, named ranges, references between sheets, arrays that spill30+ (FILTER, SORT, UNIQUE, LAMBDA), optional decimal3031 arithmetic for money, and undo for everything3132 ([formulas](docs/formulas/README.md)).3233 - **Data tools**: freeze, sort, filter, find and replace, conditional@@ -57,6 +58,8 @@ rest: building from a clone, importing files, `012 serve` and settings.
5758 | Freeze, sort and filter | Find and replace |5859 |  |  |5960 | JEV functions in formulas | Formats detected as you type |61+|  |  |62+| Arrays that spill | Macros |6063 6164 The recordings are [VHS](https://github.com/charmbracelet/vhs) tapes in6265 [`demos/`](demos), rendered by `make demos` in the Catppuccin Mocha@@ -0,0 +1,33 @@
1+# Arrays and spills: UNIQUE and SORT list the regions, FILTER lists the2+# big quarters, each spilling into the cells beside and below it, and a3+# change to the data resizes the spill. The context line says where a4+# spilled value comes from.5+Output out/arrays.gif6+Source lib/setup.tape7+8+Hide9+Type "../bin/012 data/sales.csv" Enter10+Sleep 2s11+Show12+13+Sleep 800ms14+Ctrl+G15+Type "F1" Enter16+Type "Regions" Enter17+Type@60ms "=SORT(UNIQUE(A2:A17))" Enter18+Sleep 1.5s19+Ctrl+G20+Type "F8" Enter21+Type "Over 300 units" Enter22+Type@60ms "=FILTER(A2:C17, C2:C17>300)" Enter23+Sleep 2s24+Screenshot out/stills/arrays-spill.png25+Ctrl+G26+Type "C2" Enter27+Type "310" Enter28+Sleep 2s29+Ctrl+G30+Type "G11" Enter31+Sleep 1.5s32+Screenshot out/stills/arrays-spilled-from.png33+Sleep 1s@@ -5,6 +5,8 @@ sidebar_position: 4
55 66 # Arrays and spills77 8+9+810 An array is a block of values: a range read whole, an array literal911 such as `{1,2;3,4}` (`,` between values in a row, `;` between rows; its1012 values may be ranges, so `{A1:A3,C1:C3}` puts two columns side byBinary file.