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

7
LINES

< > BotCompany Repo | #1016985 // objectsWhereFieldLessThan

JavaX fragment (include)

1  
static <A> L<A> objectsWhereFieldLessThan(Collection<A> c, S field, O value) {
2  
  new L<A> l;
3  
  for (A x : unnull(c))
4  
    if (cmp(getOpt(x, field), value) < 0)
5  
      l.add(x);
6  
  ret l;
7  
}

Author comment

Began life as a copy of #1003171

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1016985
Snippet name: objectsWhereFieldLessThan
Eternal ID of this version: #1016985/1
Text MD5: b96a70dc1306e2e9c35cf7b3a9e0e8e9
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-07-09 20:53:36
Source code size: 191 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 349 / 385
Referenced in: [show references]