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

7
LINES

< > BotCompany Repo | #1021249 // indicesOfStartingWithTrim

JavaX fragment (include)

static L<Int> indicesOfStartingWithTrim(LS l, S prefix) {
  new L<Int> x;
  for i over l:
    if (startsWith(trim(l.get(i)), prefix))
      x.add(i);
  ret x;
}

Author comment

Began life as a copy of #1013118

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1021249
Snippet name: indicesOfStartingWithTrim
Eternal ID of this version: #1021249/3
Text MD5: c5ec6d6bc2784f875ada8aaadb7a5c56
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-06 11:32:50
Source code size: 166 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 237 / 271
Version history: 2 change(s)
Referenced in: [show references]