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

11
LINES

< > BotCompany Repo | #1002074 // filterByMethod

JavaX fragment (include)

static <A> L<A> mapMethodLike filterByMethod(Collection<A> c, S method) {
  new L<A> l;
  for (A x : c)
    if (booleanValue(call(x, method)))
      l.add(x);
  ret l;
}

static <A> L<A> mapMethodLike filterByMethod(S method, Collection<A> c) {
  ret filterByMethod(c, method);
}

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: #1002074
Snippet name: filterByMethod
Eternal ID of this version: #1002074/3
Text MD5: 36f39569730a627187dd753f6f910d1d
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-01-09 13:38:41
Source code size: 285 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 561 / 790
Version history: 2 change(s)
Referenced in: [show references]