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

7
LINES

< > BotCompany Repo | #1030023 // indicesOfEndingWithTrim

JavaX fragment (include)

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

Author comment

Began life as a copy of #1021249

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1030023
Snippet name: indicesOfEndingWithTrim
Eternal ID of this version: #1030023/1
Text MD5: 0ae251a8fec388aca594f007b452eccc
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-10-30 11:18:01
Source code size: 162 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 177 / 219
Referenced in: [show references]