Transpiled version (114L) is out of date.
1 | static double doubleMax(Iterable<Double> l) {
|
2 | double max = negativeInfinity(); |
3 | fOr (double d : l) |
4 | max = Math.max(max, d); |
5 | ret max; |
6 | } |
7 | |
8 | static double doubleMax(double[] l) {
|
9 | double max = negativeInfinity(); |
10 | fOr (double d : l) |
11 | max = Math.max(max, d); |
12 | ret max; |
13 | } |
14 | |
15 | static double doubleMax(double[] l, int from, int to) {
|
16 | double max = negativeInfinity(); |
17 | for (int i = from; i < to; i++) |
18 | max = Math.max(max, l[i]); |
19 | ret max; |
20 | } |
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: | #1025079 |
| Snippet name: | doubleMax |
| Eternal ID of this version: | #1025079/4 |
| Text MD5: | d87e63f34ed7e6d0132d1aa488e18f12 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-10-24 00:51:22 |
| Source code size: | 467 bytes / 20 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 596 / 738 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |