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

7
LINES

< > BotCompany Repo | #1020335 // startingWithAfterLtrim - only return elements starting with prefix when ltrimmed. prefix is not trimmed

JavaX fragment (include)

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

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

Author comment

Began life as a copy of #1008860

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1020335
Snippet name: startingWithAfterLtrim - only return elements starting with prefix when ltrimmed. prefix is not trimmed
Eternal ID of this version: #1020335/3
Text MD5: 463213cc273670f25b8affc7cf534e7f
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-15 12:38:23
Source code size: 232 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 218 / 259
Version history: 2 change(s)
Referenced in: [show references]