Skip to content

Commit

Permalink
chore: autopublish 2022-11-05T15:48:28Z
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Nov 5, 2022
1 parent 87b8fc5 commit 6ad7706
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions sclin-docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -1417,7 +1417,7 @@ Stack: ``` a -> _ ```
Shuffles `a`.
```
10O>a shuf >A
-> [0 9 8 4 7 1 6 5 2 3]
-> [2 0 7 6 4 1 8 9 3 5]
```


Expand Down Expand Up @@ -1765,7 +1765,7 @@ See [``` map ```](#cmd-map) for the signature of `f`.
```
```
[1 2 3 4 5] \$rng sort
-> [3 4 2 5 1]
-> [5 2 4 3 1]
```


Expand Down Expand Up @@ -1812,3 +1812,27 @@ See [``` map ```](#cmd-map) for the signature of `f`.
-> {0=>[""] 2=>["ab" "ac" "bc"] 1=>["a" "b" "c"] 3=>["abc"]}
```


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

Stack: ``` a f' -> ARR[_ _]' ```

Equivalent to a combination of [``` tk* ```](#cmd-tk-1) and [``` dp* ```](#cmd-dp-1).
See [``` fltr ```](#cmd-fltr) for the signature of `f`.
```
[5 1 2 4 3] 2.% span
-> [[5 1] [2 4 3]]
```


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

Stack: ``` a f' -> _' ```

Groups consecutive duplicate runs of `a` based on predicate `f`.
See [``` sort~ ```](#cmd-sort-1) for the signature of `f`.
```
[1 1 2 3 3 4 6 4 4] \=` pack
-> [[1 1] [2] [3 3] [4] [6] [4 4]]
```

0 comments on commit 6ad7706

Please sign in to comment.