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

7
LINES

< > BotCompany Repo | #1016985 // objectsWhereFieldLessThan

JavaX fragment (include)

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

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: 273 / 310
Referenced in: [show references]