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

11
LINES

< > BotCompany Repo | #1002074 // filterByMethod

JavaX fragment (include)

1  
static <A> L<A> mapMethodLike filterByMethod(Collection<A> c, S method) {
2  
  new L<A> l;
3  
  for (A x : c)
4  
    if (booleanValue(call(x, method)))
5  
      l.add(x);
6  
  ret l;
7  
}
8  
9  
static <A> L<A> mapMethodLike filterByMethod(S method, Collection<A> c) {
10  
  ret filterByMethod(c, method);
11  
}

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: 636 / 872
Version history: 2 change(s)
Referenced in: [show references]