From 4d602ea36183e62e463cea08900a16ea6240a03f Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Tue, 6 Jul 2021 22:18:20 -0400 Subject: Editing and links --- docs/doc/identity.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/doc/identity.html') diff --git a/docs/doc/identity.html b/docs/doc/identity.html index f865e960..196b219c 100644 --- a/docs/doc/identity.html +++ b/docs/doc/identity.html @@ -21,7 +21,7 @@

Depending on your past experiences, this could cause some confusion: built-in support for functions that do nothing? Documentation should say why a feature's there and how to use it, not just what it does, so we'll try to address this below. The most important single use is for tacit programming, but there are a variety of other uses as well.

Of course, it's easy to write block functions {๐•ฉ} and {๐•จ} that return particular arguments. While I would already make โŠฃ and โŠข primitives just because they are common and important, there are also specific disadvantages to using blocks. They fail to indicate that there are no side effects, as primitives would, and they also need special casing for the interpreter to manipulate them when applying Undo (โผ) or making other inferences.

Filling arrays

-

What's the easiest way to create a matrix with 0 on the first row, 1 on the second, and so on? Probably this one, with table:

+

What's the easiest way to create a matrix with 0 on the first row, 1 on the second, and so on? Probably this one, with table:

โ†—๏ธ
    (โ†•4) โŠฃโŒœ โ†•5
 โ”Œโ”€           
 โ•ต 0 0 0 0 0  
@@ -30,7 +30,7 @@
   3 3 3 3 3  
             โ”˜
 
-

The right argument โ†•5 could be any length-5 list, as its values aren't used. With 5โฅŠ0, we could use +โŒœ instead, but requiring a specific argument seems artificial. A similar pattern applies with Each:

+

The right argument โ†•5 could be any length-5 list, as its values aren't used. With 5โฅŠ0, we could use +โŒœ instead, but requiring a specific argument seems artificial. A similar pattern applies with Each:

โ†—๏ธ
    (โŒฝโ†•4) โŠฃยจ โ†•4โ€ฟ5
 โ”Œโ”€           
 โ•ต 3 3 3 3 3  
-- 
cgit v1.2.3