1 | static Int intRangeMax(IntRange... l) {
|
2 | Int max = 0; |
3 | for (IntRange r : l) |
4 | if (r != null && (max == null || r.end > max)) |
5 | max = r.end; |
6 | ret max; |
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: | #1008724 |
| Snippet name: | intRangeMax - get maximum end value of int ranges |
| Eternal ID of this version: | #1008724/1 |
| Text MD5: | 6a72b6604480de28f65be8657cf50e00 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-05-30 17:27:16 |
| Source code size: | 166 bytes / 7 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 727 / 733 |
| Referenced in: | [show references] |