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

11
LINES

< > BotCompany Repo | #1003802 // detectInterestingLines

JavaX fragment (include)

sS detectInterestingLines_suffix = "<< detect";

static BitSet detectInterestingLines(L<S> log) {
  new BitSet bs;
  for (int i = 0; i < l(log); i++)
    if (endsWith(log.get(i), detectInterestingLines_suffix)) {
      bs.set(i);
      log.set(i, dropSuffixAndTrim(detectInterestingLines_suffix, log.get(i)));
    }
  ret bs;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1003802
Snippet name: detectInterestingLines
Eternal ID of this version: #1003802/1
Text MD5: 15e0e2644c3a4b0e9ca34aef3275b02b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-07-27 18:03:37
Source code size: 339 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 515 / 561
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)