From 2c50d91ec7eb8bc7890befe874a0b93729c2437e Mon Sep 17 00:00:00 2001 From: razetime Date: Wed, 19 Jan 2022 22:48:16 +0530 Subject: add h2s remove copied output, ascii filenames --- docs/help/prefixes_take.html | 56 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 docs/help/prefixes_take.html (limited to 'docs/help/prefixes_take.html') diff --git a/docs/help/prefixes_take.html b/docs/help/prefixes_take.html new file mode 100644 index 00000000..61d27740 --- /dev/null +++ b/docs/help/prefixes_take.html @@ -0,0 +1,56 @@ + + + + BQN: Up Arrow (`โ†‘`) + + +

Up Arrow (โ†‘)

+

โ†‘ ๐•ฉ: Prefixes

+

Prefixes of array ๐•ฉ along its first axis.

+โ†—๏ธ
       โ†‘ 1โ€ฟ2โ€ฟ3โ€ฟ4
+โŸจ โŸจโŸฉ โŸจ 1 โŸฉ โŸจ 1 2 โŸฉ โŸจ 1 2 3 โŸฉ โŸจ 1 2 3 4 โŸฉ โŸฉ
+
+       a โ† 3โ€ฟ3 โฅŠ โ†•9
+
+       โ†‘ a
+โ”Œโ”€                                    
+ยท โ†•0โ€ฟ3 โ”Œโ”€        โ”Œโ”€        โ”Œโ”€         
+       โ•ต 0 1 2   โ•ต 0 1 2   โ•ต 0 1 2    
+               โ”˜   3 4 5     3 4 5    
+                         โ”˜   6 7 8    
+                                   โ”˜  
+                                     โ”˜
+
+

๐•จ โ†‘ ๐•ฉ: Take

+

For each integer in ๐•จ, take that many elements from each dimension of ๐•ฉ.

+

Negative numbers take from the end.

+

If any of the elements in ๐•จ are greater than the length of their respective dimension, the dimension is extended with a fill value.

+โ†—๏ธ
      3 โ†‘ 1โ€ฟ3โ€ฟ5โ€ฟ67
+โŸจ 1 3 5 โŸฉ
+
+      a โ† 4โ€ฟ4 โฅŠ โ†•16
+Error: Redefinition
+
+      3โ€ฟ3 โ†‘ a
+โ”Œโ”€       
+โ•ต 0 1 2  
+  3 4 5  
+  6 7 8  
+        โ”˜
+
+      5โ€ฟ5 โ†‘ a
+โ”Œโ”€           
+โ•ต 0 1 2 0 0  
+  3 4 5 0 0  
+  6 7 8 0 0  
+  0 0 0 0 0  
+  0 0 0 0 0  
+            โ”˜
+
+      3โ€ฟยฏ3 โ†‘ a
+โ”Œโ”€       
+โ•ต 0 1 2  
+  3 4 5  
+  6 7 8  
+        โ”˜
+
-- cgit v1.2.3