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

7
LINES

< > BotCompany Repo | #1008860 // startingWith - only return elements starting with X

JavaX fragment (include)

1  
static L<S> startingWith(Iterable<S> l, fS prefix) {
2  
  ret [S s : unnull(l) | startsWith(s, prefix)];
3  
}
4  
5  
static L<S> startingWith(S prefix, Iterable<S> l) {
6  
  ret startingWith(l, prefix);
7  
}

Author comment

Began life as a copy of #1008608

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: #1008860
Snippet name: startingWith - only return elements starting with X
Eternal ID of this version: #1008860/2
Text MD5: 80ca0d8a7f97c2efbc608b300aa43c44
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-14 18:04:14
Source code size: 195 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 414 / 494
Version history: 1 change(s)
Referenced in: [show references]