Libraryless. Click here for Pure Java version (3517L/22K).
svoid test_AllOnAll_probabilistic() { new AllOnAll_probabilistic<Int, Int> aoa; aoa.addA(2); aoa.addA(4); aoa.addB(6); aoa.addB(100); aoa.addB(95); aoa.addB(30); aoa.probabilityForPair = (a, b) -> (double) a*b; assertEqualsVerbose(tlft([[ <4, 100> <4, 95> <2, 100> <2, 95> <4, 30> <2, 30> <4, 6> <2, 6> ]]), tlft(hijackPrint(r { printWhileNotNull(() -> aoa.next()) }))); }
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028468 |
Snippet name: | test_AllOnAll_probabilistic |
Eternal ID of this version: | #1028468/1 |
Text MD5: | bceebb86f5a1f077b49d3c6c3ddff7ea |
Transpilation MD5: | 3ae53a82b9f21dc1b6d472d0d8d10f84 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-06-20 22:42:17 |
Source code size: | 446 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 247 / 312 |
Referenced in: | [show references] |