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

7
LINES

< > BotCompany Repo | #1002319 // filterByField

JavaX fragment (include)

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

Author comment

Began life as a copy of #1002074

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: #1002319
Snippet name: filterByField
Eternal ID of this version: #1002319/1
Text MD5: afe94da6814b52f948e177c7236d5e19
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-01-04 18:51:42
Source code size: 166 bytes / 7 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 651 / 966
Referenced in: [show references]