Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

7
LINES

< > BotCompany Repo | #1015448 // dropRectsLargerThan

JavaX fragment (include)

1  
static L<Rect> dropRectsLargerThan(int maxPixels, Collection<Rect> l) {
2  
  L<Rect> l2 = emptyList(l(l));
3  
  for (Rect r : unnull(l))
4  
    if (rectPixels(r) <= maxPixels)
5  
      l2.add(r);
6  
  ret l2;
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: #1015448
Snippet name: dropRectsLargerThan
Eternal ID of this version: #1015448/1
Text MD5: 6eaa634a8751cf216542c18b42433c2f
Author: stefan
Category: javax / imaging
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-05-14 02:09:05
Source code size: 201 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 395 / 424
Referenced in: [show references]