Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
6
Task/Permutations/Uiua/permutations-1.uiua
Normal file
6
Task/Permutations/Uiua/permutations-1.uiua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
# Takes strict range 0..<n and generates n! permutations
|
||||
# (from https://github.com/Omnikar/uiua-math/blob/main/lib.ua).
|
||||
Perms ← ♭₂⍉∧(≡↻⇡⟜↯+1⟜⊂)⊃⋅∘∘¤¤°⊂
|
||||
|
||||
Permute ← ≡⊏⊙¤⊸(Perms⇡⧻) # Generalised helper function.
|
||||
⟜⧻Permute {"this" "is" "fine"} # Yoda simulator
|
||||
1
Task/Permutations/Uiua/permutations-2.uiua
Normal file
1
Task/Permutations/Uiua/permutations-2.uiua
Normal file
|
|
@ -0,0 +1 @@
|
|||
⧅≠⊸⧻{"this" "is" "fine"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue