Download Jar. Libraryless. Click here for Pure Java version (649L/5K).
1 | !7 |
2 | |
3 | static L<S> l = splitAtSpace("one two three four five six seven eight nine ten!");
|
4 | static L<O[]> perm; |
5 | |
6 | p {
|
7 | L<S> ll = l; |
8 | print("\nPermutating: " + ll);
|
9 | time "Permutating" { perm = allPermutations_arrays(ll); }
|
10 | print("Have " + n(perm, "permutation"));
|
11 | assertEquals(factorial(l(ll)), l(perm)); |
12 | assertEquals(l(new HashSet(perm)), l(perm)); |
13 | print("\nOK (probably)");
|
14 | //pnl(perm); |
15 | } |
Began life as a copy of #1010343
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1010345 |
| Snippet name: | Test allPermutations_arrays(10) |
| Eternal ID of this version: | #1010345/1 |
| Text MD5: | f87b7da21eb00824faed008061a4e163 |
| Transpilation MD5: | 1be00e18bf47b95af2d9865f0b165a68 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code (desktop) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-09-12 02:39:44 |
| Source code size: | 411 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 760 / 1728 |
| Referenced in: | [show references] |