Skip to content

Commit

Permalink
fix a tuples example
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikalii committed Sep 17, 2024
1 parent cc64a8f commit 8197d58
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
15 changes: 13 additions & 2 deletions site/primitives.json
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,8 @@
"outputs": 1,
"class": "DyadicArray",
"description": "Get all combinations of k rows from an array",
"experimental": true
"experimental": true,
"deprecated": true
},
"chunks": {
"glyph": "",
Expand Down Expand Up @@ -970,7 +971,8 @@
"outputs": 1,
"class": "DyadicArray",
"description": "Get all permutations of k rows from an array",
"experimental": true
"experimental": true,
"deprecated": true
},
"pi": {
"glyph": "π",
Expand Down Expand Up @@ -1297,6 +1299,15 @@
"class": "Thread",
"description": "Try to receive a value from a thread"
},
"tuples": {
"glyph": "",
"args": 2,
"outputs": 1,
"modifier_args": 1,
"class": "IteratingModifier",
"description": "Get permutations or combinations of an array",
"experimental": true
},
"type": {
"args": 1,
"outputs": 1,
Expand Down
3 changes: 2 additions & 1 deletion src/primitive/defs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1556,7 +1556,8 @@ primitive!(
/// ex: # Experimental!
/// : ⍉ ⧅≠ 4 ⇡5
/// If the size is `2`, the function is allowed to return non-booleans. Tuples will be copied as many times as the value.
/// ex: ⍉ ⧅(×2<) 2 ⇡4
/// ex: # Experimental!
/// : ⍉ ⧅(×2<) 2 ⇡4
/// With [un][where], we can see where the inspiration for [tuples]'s glyph comes from.
/// ex: # Experimental!
/// : °⊚ ⧅< 2 ⇡50
Expand Down
2 changes: 1 addition & 1 deletion todo.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
- 0.13
- Rename and stabilize `but` and `with`
- Likely `and`
- `choose/permute/triangle` unification
- `bits` subscript
- Recursive stack macros
- Label and format string glyphs?
- `setinv/setund` unification
Expand Down

0 comments on commit 8197d58

Please sign in to comment.