1 | static double repeatAndAdd_double(int repetitions, O f) {
|
2 | double sum = 0; |
3 | repeat repetitions {
|
4 | sum += (double) callF(f); |
5 | } |
6 | ret sum; |
7 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1008663 |
| Snippet name: | repeatAndAdd_double - repeatedly execute double-returning function and add its results |
| Eternal ID of this version: | #1008663/1 |
| Text MD5: | 7cc3f713ed2fd10b45dcfd071aa7217e |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-05-27 13:38:25 |
| Source code size: | 151 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 886 / 934 |
| Referenced in: | [show references] |