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

11
LINES

< > BotCompany Repo | #1017966 // stringsContaining

JavaX fragment (include)

1  
static L<S> stringsContaining(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> stringsContaining(S x, Collection<S> l) {
10  
  ret stringsContaining(l, x);
11  
}

Author comment

Began life as a copy of #1014373

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1017966
Snippet name: stringsContaining
Eternal ID of this version: #1017966/1
Text MD5: 05bfab22b9b66301ea4d1430ee3cb09e
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-08-23 15:16:29
Source code size: 245 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 291 / 326
Referenced in: [show references]