From c5eef0418df2ae6a97c54839fa010ff60d96f78b Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Sat, 8 Jan 2022 16:14:51 -0500 Subject: =?UTF-8?q?Add=20error=20messages=20to=20generated=20markdown=20do?= =?UTF-8?q?cs=20with=20=E2=80=A2CurrentError=20(fixes=20#22)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/doc/select.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/doc/select.html') diff --git a/docs/doc/select.html b/docs/doc/select.html index 919a80c0..aaa36cc3 100644 --- a/docs/doc/select.html +++ b/docs/doc/select.html @@ -64,7 +64,7 @@ "two" 0 โŠ <5 # No first axis to select from -ERROR +Error: โŠ: ๐•ฉ cannot be a unit

As a major cell of ๐•ฉ, the result has rank one less than it and its shape is 1โ†“โ‰ข๐•ฉ. ๐•ฉ must have rank one or more.

The index ๐•จ has to be an integer less than โ‰ ๐•ฉ. It can be negative, in which case it must be greater than or equal to -โ‰ ๐•ฉ. Negative indices select from the end of ๐•ฉ, in that ยฏ1 indicates the last major cell and -โ‰ ๐•ฉ indicates the first. If โ‰ ๐•ฉ is 0, then no index is valid.

@@ -74,7 +74,7 @@ โ”˜ 0 โŠ "" -ERROR +Error: โŠ: Indexing out-of-bounds (๐•จโ‰ก0, 0โ‰กโ‰ ๐•ฉ)

The monadic case First Cell (โŠ๐•ฉ) is identical to 0โŠ๐•ฉ. It has the same restrictions: ๐•ฉ must have rank 1 or more, and length 1 or more.

โ†—๏ธ
    โŠ "abc"
@@ -89,7 +89,7 @@ ERROR
 "abc"
 
     โŠ 'a'
-ERROR
+Error: โŠ: Argument cannot be an atom
 

First-axis selection

If ๐•จ is an array of numbers (including any empty array), then each number indicates a major cell of ๐•ฉ. In the simplest case, a list of numbers gives a result with the same rank as ๐•ฉ but maybe not the same length.

-- cgit v1.2.3