2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
25
Task/Permutations/K/permutations-2.k
Normal file
25
Task/Permutations/K/permutations-2.k
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
perm:{x@m@&n=(#?:)'m:!n#n:#x}
|
||||
|
||||
perm[!3]
|
||||
(0 1 2
|
||||
0 2 1
|
||||
1 0 2
|
||||
1 2 0
|
||||
2 0 1
|
||||
2 1 0)
|
||||
|
||||
perm "abc"
|
||||
("abc"
|
||||
"acb"
|
||||
"bac"
|
||||
"bca"
|
||||
"cab"
|
||||
"cba")
|
||||
|
||||
`0:{1_,/" ",/: $x}' perm `$" "\"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