Libraryless. Click here for Pure Java version (3554L/19K).
static <A> L<WithProbability<A>> mapToProbabilities(Iterable<A> l, IF1<A, Double> f) { ret map(l, a -> withProbability(f.get(a), a)); }
Began life as a copy of #1032212
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
| Snippet ID: | #1032217 | 
| Snippet name: | mapToProbabilities | 
| Eternal ID of this version: | #1032217/1 | 
| Text MD5: | 878e5d38d9115a17737f8b485c65876b | 
| Transpilation MD5: | a102838513335b7b78d9d8f7a2bb496e | 
| Author: | stefan | 
| Category: | |
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2021-08-20 10:22:14 | 
| Source code size: | 139 bytes / 3 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 344 / 454 | 
| Referenced in: | [show references] |