Skip to content

Commit

Permalink
Merge pull request #571 from JoaoFelipe3/main
Browse files Browse the repository at this point in the history
Add `⊏ select` and `⊡ pick` subscripts
  • Loading branch information
kaikalii authored Oct 6, 2024
2 parents 58d90be + f9cffb8 commit 21f8416
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion site/src/other.rs
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ pub fn Experimental() -> impl IntoView {
<td><Editor example="# Experimental!\n⊃+₁×₂ [1 2 3]" nonprogressive=true/></td>
</tr>
<tr>
<td><Prims prims=[Take, Drop, Join, Rerank, Rotate, Orient, Windows]/></td>
<td><Prims prims=[Select, Pick, Take, Drop, Join, Rerank, Rotate, Orient, Windows]/></td>
<td>"Constant first argument"</td>
<td><Editor example="# Experimental!\n⊃↙₂↻₃ [1 2 3 4 5]" nonprogressive=true/></td>
</tr>
Expand Down
4 changes: 3 additions & 1 deletion src/primitive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,9 @@ impl Primitive {
use Primitive::*;
Some(match self {
prim if prim.class() == PrimClass::DyadicPervasive => Signature::new(1, 1),
Take | Drop | Join | Rerank | Rotate | Orient | Windows | Base => Signature::new(1, 1),
Select | Pick | Take | Drop | Join | Rerank | Rotate | Orient | Windows | Base => {
Signature::new(1, 1)
}
Couple | Box => Signature::new(n, 1),
Transpose | Sqrt | Round | Floor | Ceil | Rand | Utf8 => return self.signature(),
_ => return None,
Expand Down

0 comments on commit 21f8416

Please sign in to comment.