From 9c69d9a383647dd0624871c42bee6f85fafc0b1a Mon Sep 17 00:00:00 2001 From: ven Date: Thu, 12 Sep 2024 15:37:36 +0200 Subject: [PATCH] Tweak & example to better demonstrate what's repeated I got confused at first by the result, and I think this one is slightly more explicit. --- 06-numbers-and-logic.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/06-numbers-and-logic.md b/06-numbers-and-logic.md index 842e005..8df88a3 100644 --- a/06-numbers-and-logic.md +++ b/06-numbers-and-logic.md @@ -49,8 +49,8 @@ An important function that works on boolean arrays is *where* (`&`). Where takes repeats their indices by their values: ``` - & 1 2 3 -0 1 1 2 2 2 + & 1 3 2 +0 1 1 1 2 2 ``` What makes `&` interesting is that it can also repeat an index 0 times, thereby discarding it.