static double repeatAndAdd_double(int repetitions, O f) { double sum = 0; repeat repetitions { sum += (double) callF(f); } ret sum; }
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: | 561 / 633 |
Referenced in: | [show references] |