tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
12
Task/Permutations/K/permutations.k
Normal file
12
Task/Permutations/K/permutations.k
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
perm:{:[1<x;,/(>:'(x,x)#1,x#0)[;0,'1+_f x-1];,!x]}
|
||||
perm 2
|
||||
(0 1
|
||||
1 0)
|
||||
|
||||
`0:{1_,/" ",/:x}'r@perm@#r:("some";"random";"text")
|
||||
some random text
|
||||
some text random
|
||||
random some text
|
||||
random text some
|
||||
text some random
|
||||
text random some
|
||||
Loading…
Add table
Add a link
Reference in a new issue