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

5
LINES

< > BotCompany Repo | #1021383 // tok_dropStartingWithWord

JavaX fragment (include)

1  
sS tok_dropStartingWithWord(S word, S s) {
2  
  LS tok = javaTokWithBrackets(s);
3  
  int i = indexOfIC(tok, word);
4  
  ret i < 0 ? s : joinSubList(tok, 0, i-1);
5  
}

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: #1021383
Snippet name: tok_dropStartingWithWord
Eternal ID of this version: #1021383/2
Text MD5: abc33c4a1c0107d267dc156de7b642c5
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-02-10 15:30:36
Source code size: 159 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 256 / 308
Version history: 1 change(s)
Referenced in: [show references]