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

6
LINES

< > BotCompany Repo | #1013112 // tok_splitAtAndFromMiddle

JavaX fragment (include)

static L<S> tok_splitAtAndFromMiddle(S s) {
  L<S> tok = javaTok(s);
  int i = indexOfSearchingFromMiddleIC(tok, "and");
  if (i < 0 || i <= 1 || i >= l(tok)-2) ret ll(s);
  ret ll(trimJoinSubList(tok, 0, i), trimJoinSubList(tok, i+1));
}

Author comment

Began life as a copy of #1013108

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1013112
Snippet name: tok_splitAtAndFromMiddle
Eternal ID of this version: #1013112/1
Text MD5: 785673bc7cfb3c1174f237506c2f963b
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-25 21:57:28
Source code size: 243 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 318 / 366
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)