1 | static Rect mergeRects(L<Rect> l) { |
2 | Rect r = first(l); |
3 | for (int i = 1; i < l(l); i++) |
4 | r = rectUnion(r, l.get(i)); |
5 | ret r; |
6 | } |
7 | |
8 | static Rect mergeRects(Rect a, Rect b) { |
9 | ret rectUnion(a, b); |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, elmgxqgtpvxh, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006130 |
Snippet name: | mergeRects |
Eternal ID of this version: | #1006130/1 |
Text MD5: | 1a746c60d20e70eed61eeed7fc0dc93b |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-12-28 22:58:36 |
Source code size: | 208 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 596 / 619 |
Referenced in: | [show references] |