Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
6
Task/Permutations/Uiua/permutations.uiua
Normal file
6
Task/Permutations/Uiua/permutations.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⍉∧(≡↻⇡⟜↯+1⟜⊂):¤¤°⊂
|
||||
|
||||
Permute ← ≡⊏⊙¤⊸(Perms⇡⧻) # Generalised helper function.
|
||||
⟜⧻Permute {"this" "is" "fine"} # Yoda simulator
|
||||
Loading…
Add table
Add a link
Reference in a new issue