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)

static L<S> startingWith(Iterable<S> l, fS prefix) {
  ret [S s : unnull(l) | startsWith(s, prefix)];
}

static L<S> startingWith(S prefix, Iterable<S> l) {
  ret startingWith(l, prefix);
}

Author comment

Began life as a copy of #1008608

download  show line numbers  debug dex   

Travelled to 11 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz

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: 261 / 313
Version history: 1 change(s)
Referenced in: [show references]

Formerly at http://tinybrain.de/1008860 & http://1008860.tinybrain.de