Skip to content

Commit

Permalink
chore: autopublish 2023-08-31T06:37:12Z
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 31, 2023
1 parent b5612dc commit 4bbe293
Showing 1 changed file with 86 additions and 2 deletions.
88 changes: 86 additions & 2 deletions sclin-docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,12 @@
[``` ^set ```](#cmd-set)
[``` Q* ```](#cmd-q-4)
[``` tpose ```](#cmd-tpose)
[``` pad ```](#cmd-pad)
[``` padl ```](#cmd-padl)
[``` padc ```](#cmd-padc)
[``` pad` ```](#cmd-pad-1)
[``` padl` ```](#cmd-padl-1)
[``` padc` ```](#cmd-padc-1)
[``` S>c ```](#cmd-sc)
[``` c>S ```](#cmd-cs)
[``` <> ```](#cmd--80)
Expand Down Expand Up @@ -1943,7 +1949,7 @@ Stack: ``` a -> _ ```
Shuffles `a`.
```
10O>a shuf
-> [4 0 8 3 5 1 7 9 2 6]
-> [0 6 4 2 5 7 3 8 9 1]
```


Expand Down Expand Up @@ -2006,6 +2012,84 @@ Transposes a collection of collections matrix-style.
```


## CMD: [``` pad ```](#cmd-pad)

Stack: ``` (a >STR)' (b >NUM)' (c >STR)' -> STR' ```

Atomic [``` pad` ```](#cmd-pad-1).


## CMD: [``` padl ```](#cmd-padl)

Stack: ``` (a >STR)' (b >NUM)' (c >STR)' -> STR' ```

Atomic [``` padl` ```](#cmd-padl-1).


## CMD: [``` padc ```](#cmd-padc)

Stack: ``` (a >STR)' (b >NUM)' (c >STR)' -> STR' ```

Atomic [``` padc` ```](#cmd-padc-1).


## CMD: [``` pad` ```](#cmd-pad-1)

Stack: ``` a[_*] (b >NUM)' c -> STR' ```

Pads `a` from the right to length `b` using `c`.
```
[1 2 3 4] 9 0pad`
-> [1 2 3 4 0 0 0 0 0]
```
```
[1 2 3 4] 9 [5 6 7] pad`
-> [1 2 3 4 5 6 7 5 6 7 5 6 7 5 6 7 5 6 7]
```
```
[1 2 3 4] 3 0pad`
-> [1 2 3 4]
```


## CMD: [``` padl` ```](#cmd-padl-1)

Stack: ``` a[_*] (b >NUM)' c -> STR' ```

Pads `a` from the right to length `b` using `c`.
```
[1 2 3 4] 9 0padl`
-> [0 0 0 0 0 1 2 3 4]
```
```
[1 2 3 4] 9 [5 6 7] padl`
-> [5 6 7 5 6 7 5 6 7 5 6 7 5 6 7 1 2 3 4]
```
```
[1 2 3 4] 3 0padl`
-> [1 2 3 4]
```


## CMD: [``` padc` ```](#cmd-padc-1)

Stack: ``` a[_*] (b >NUM)' c -> STR' ```

Pads `a` from the right to length `b` using `c`.
```
[1 2 3 4] 9 0padc`
-> [0 0 1 2 3 4 0 0 0]
```
```
[1 2 3 4] 9 [5 6 7] padc`
-> [5 6 7 5 6 7 1 2 3 4 5 6 7 5 6 7 5 6 7]
```
```
[1 2 3 4] 3 0padc`
-> [1 2 3 4]
```


## CMD: [``` S>c ```](#cmd-sc)

Stack: ``` (a >STR)' -> ARR[NUM*]' ```
Expand Down Expand Up @@ -2549,7 +2633,7 @@ See [``` map ```](#cmd-map) for the signature of `f`.
```
```
[1 2 3 4 5] \$rng sort
-> [4 3 5 2 1]
-> [4 5 3 2 1]
```


Expand Down

0 comments on commit 4bbe293

Please sign in to comment.