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

19
LINES

< > BotCompany Repo | #1021399 // filterCISet

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (2571L/16K).

1  
static Set<S> filterCISet(Iterable<S> c, O pred) {
2  
  Set<S> x = ciSet();
3  
  if (c != null) for (S o : c)
4  
    if (isTrue(callF(pred, o)))
5  
      x.add(o);
6  
  ret x;
7  
}
8  
9  
static Set<S> filterCISet(O pred, Iterable c) {
10  
  ret filterCISet(c, pred);
11  
}
12  
13  
static Set<S> filterCISet(Iterable<S> c, IPred<S> pred) {
14  
  ret filterCISet(c, (O) pred);
15  
}
16  
17  
static Set<S> lambdaMapLike filterCISet(IPred<S> pred, Iterable<S> c) {
18  
  ret filterCISet(c, (O) pred);
19  
}

Author comment

Began life as a copy of #1003524

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1021399
Snippet name: filterCISet
Eternal ID of this version: #1021399/9
Text MD5: aaf0b912747e1d0d2ffba0464295643d
Transpilation MD5: 7a903137a3d3c1b017a939ea747d4db0
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-07-12 12:23:52
Source code size: 459 bytes / 19 lines
Pitched / IR pitched: No / No
Views / Downloads: 277 / 371
Version history: 8 change(s)
Referenced in: [show references]