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

11
LINES

< > BotCompany Repo | #1020538 // containing

JavaX fragment (include)

1  
static L<S> containing(Collection<S> l, fS x) {
2  
  new LS out;
3  
  for (S s : unnull(l))
4  
    if (contains(s, x))
5  
      out.add(s);
6  
  ret out;
7  
}
8  
9  
static L<S> containing(S x, Collection<S> l) {
10  
  ret containing(l, x);
11  
}

Author comment

Began life as a copy of #1018902

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1020538
Snippet name: containing
Eternal ID of this version: #1020538/1
Text MD5: 22a66f14d17ac9798a268a55f562f4b4
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-26 00:53:54
Source code size: 224 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 221 / 272
Referenced in: [show references]