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  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: 487 / 575
Version history: 1 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1008863 - startingWith_dropPrefix - only return elements starting with X, drop prefix
#1013461 - notStartingWithIC
#1013995 - startingWithUpperCase
#1014356 - startingWithLetter
#1014373 - startingWithIC
#1015267 - onlyStringsLongerThan
#1015602 - endingWith - only return elements starting with X
#1020335 - startingWithAfterLtrim - only return elements starting with prefix when ltrimmed. prefix is not trimmed
#1026637 - startingWithIC_wordBoundary - only return elements starting with X
#1028991 - startingWithDigit