Skip to content

Commit

Permalink
fix some modifier arg counts
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Jun 14, 2024
1 parent 0a382a4 commit a54df92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/primitive/defs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1353,7 +1353,7 @@ primitive!(
/// If the function takes more than 2 arguments, additional arguments above the array on the stack will be passed to the function on every iteration. This is useful for things like interspersing one array between the rows of another.
/// ex: /(⊂⊂) 0_1 [2 3 4 5]
/// ex: /◇(⊂⊂) @, {"cat" "bird" "dog"}
(1(1)[1], Reduce, AggregatingModifier, ("reduce", '/')),
([1], Reduce, AggregatingModifier, ("reduce", '/')),
/// Apply a function to aggregate arrays
///
/// Expects as many arguments as its function takes.
Expand Down Expand Up @@ -1453,7 +1453,7 @@ primitive!(
/// If you want to fix one of the arrays so that it is present in every call of the function, you can simply add a dimension to it, though you may need to collapse it later.
/// Here, we add a dimension to the second array to [fix] it, then collapse with `reduce``join`.
/// ex: /⊂ ⊞(⊂⊂) ⊙¤ 1_2 3_4 5_6
(2[1], Table, IteratingModifier, ("table", '⊞')),
([1], Table, IteratingModifier, ("table", '⊞')),
/// Apply a function to each unboxed item of an array and re-box the results
///
/// For box arrays, this is roughly equivalent to `each``under``un``box`.
Expand Down Expand Up @@ -1595,7 +1595,7 @@ primitive!(
/// : ◹(⊂⊂)..⇡3
/// : ⊕(□⊕□≡°⊟)≡°⊂ .
/// : ⬚0⊕(⬚0⊕∘≡°⊟)≡°⊂ :
(1[1], Triangle, AggregatingModifier, ("triangle", '◹')),
([1], Triangle, AggregatingModifier, ("triangle", '◹')),
/// Unbox the arguments to a function before calling it
///
/// ex: ⊂ □[1 2 3] □[4 5 6]
Expand Down

0 comments on commit a54df92

Please sign in to comment.