Transpiled version (3892L) is out of date.
1 | static long longSum(Iterable<Long> l) {
|
2 | long sum = 0; |
3 | for (Long i : unnull(l)) |
4 | if (i != null) sum += i; |
5 | ret sum; |
6 | } |
7 | |
8 | static <A> long lambdaMapLike longSum(IF1<A, Long> f, Iterable<A> l) {
|
9 | ret longSum(mapI(f, l)); |
10 | } |
Began life as a copy of #1018930
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1024344 |
| Snippet name: | longSum |
| Eternal ID of this version: | #1024344/4 |
| Text MD5: | 4a6677769b71816e0f3aae77163d7867 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-09-29 21:01:00 |
| Source code size: | 234 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 493 / 617 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |