Download Jar. Libraryless. Click here for Pure Java version (649L/5K).
!7 static L<S> l = splitAtSpace("one two three four five six seven eight nine ten!"); static L<O[]> perm; p { L<S> ll = l; print("\nPermutating: " + ll); time "Permutating" { perm = allPermutations_arrays(ll); } print("Have " + n(perm, "permutation")); assertEquals(factorial(l(ll)), l(perm)); assertEquals(l(new HashSet(perm)), l(perm)); print("\nOK (probably)"); //pnl(perm); }
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: | 756 / 1709 |
| Referenced in: | [show references] |