Transpiled version (9348L) is out of date.
static <A, B> L<WithProbability<B>> mapProbabilisticList(IF1<A, B> f, Iterable<WithProbability<A>> l) { ret map(l, a -> a == null ?: withProbability(a.probability(), f.get(a!))); } static <A, B> L<WithProbability<B>> mapProbabilisticList(Iterable<WithProbability<A>> l, IF1<A, B> f) { ret mapProbabilisticList(f, l); }
download show line numbers debug dex old transpilations
Travelled to 3 computer(s): elmgxqgtpvxh, mqqgnosmbjvj, wnsclhtenguj
No comments. add comment
| Snippet ID: | #1036032 |
| Snippet name: | mapProbabilisticList |
| Eternal ID of this version: | #1036032/3 |
| Text MD5: | 2c5585fc7d5a0674a23666e17ba06f74 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-09-01 23:06:08 |
| Source code size: | 325 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 425 / 534 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |