static int minXOfFirstNChildren(final Container c, final int n) { ret swing(func -> int { int x = c.getWidth(); for (Component child : takeFirst(n, getChildren(c))) x = min(x, child.getX()); ret x; }); }
Began life as a copy of #1020055
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1020056 |
Snippet name: | minXOfFirstNChildren |
Eternal ID of this version: | #1020056/3 |
Text MD5: | 92c37f1c0f1926ef7733b1a7566abf61 |
Author: | stefan |
Category: | javax / gui |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-12-05 11:34:07 |
Source code size: | 232 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 266 / 315 |
Version history: | 2 change(s) |
Referenced in: | [show references] |