diff --git a/site/src/other.rs b/site/src/other.rs index 6ec2f6e18..3afc0a4e8 100644 --- a/site/src/other.rs +++ b/site/src/other.rs @@ -554,6 +554,7 @@ pub fn Experimental() -> impl IntoView { subscript(Rows, "Operate on -N-rank rows", "# Experimental!\n≡₂□ °△2_3_4"), subscript(Each, "Operate on N-rank rows", "# Experimental!\n∵₁□ °△2_3_4"), subscript(Repeat, "Repetition count", "# Experimental!\n⍥₅(⊂⟜/+) [1 2]"), + subscript(Tuples, "Tuple size", "# Experimental!\n⧅₂< ⇡4"), ] } diff --git a/src/compile/mod.rs b/src/compile/mod.rs index afc874f44..b489e7ffe 100644 --- a/src/compile/mod.rs +++ b/src/compile/mod.rs @@ -2066,7 +2066,11 @@ code: _ => { if !matches!( prim, - Primitive::Both | Primitive::Repeat | Primitive::Rows | Primitive::Each + Primitive::Both + | Primitive::Repeat + | Primitive::Rows + | Primitive::Each + | Primitive::Tuples ) { self.add_error( span, diff --git a/src/compile/modifier.rs b/src/compile/modifier.rs index d672e6252..57d4c56c0 100644 --- a/src/compile/modifier.rs +++ b/src/compile/modifier.rs @@ -511,6 +511,7 @@ impl Compiler { Instr::ImplPrim(ImplPrimitive::UndoRerank, span) ]; } + Primitive::Tuples => before = eco_vec![Instr::push(n)], _ => {} } }