Libraryless. Click here for Pure Java version (8440L/47K).
| 1 | svoid testWeightlessShuffledIteratorWithSeed() {
 | 
| 2 |   var l = virtualList(26, _i -> charPlus('a', _i));
 | 
| 3 | S original = join(l); | 
| 4 |   for (int seed : countTo(26)) {
 | 
| 5 | S shuffled = print(join(WeightlessShuffledIteratorWithSeed(l, seed))); | 
| 6 | assertEquals(sortedString(shuffled), original); | 
| 7 | } | 
| 8 | } | 
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035208 | 
| Snippet name: | testWeightlessShuffledIteratorWithSeed | 
| Eternal ID of this version: | #1035208/2 | 
| Text MD5: | da27a067784517b8e8ad87d1c1be34a7 | 
| Transpilation MD5: | 7071b855a55e95b5b7c068489c6f93f5 | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2022-04-15 04:48:01 | 
| Source code size: | 297 bytes / 8 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 364 / 466 | 
| Version history: | 1 change(s) | 
| Referenced in: | [show references] |