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

9
LINES

< > BotCompany Repo | #1012400 // ai_sr_patternize - sr = specReturn

JavaX fragment (include)

static S ai_sr_patternize(S s) {
  L<S> tok = ai_someSplit(s);
  for (int i = 1; i < l(tok); i += 2) {
    S category = ai_text(tok.get(i), "is", "$X");
    if (category != null)
      tok.set(i, "<" + category + ">");
  }
  ret join(tok);
}

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: #1012400
Snippet name: ai_sr_patternize - sr = specReturn
Eternal ID of this version: #1012400/2
Text MD5: 7427adf418892bb7c4a3f15ce2dc3d1c
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-12-01 16:19:25
Source code size: 249 bytes / 9 lines
Pitched / IR pitched: No / No
Views / Downloads: 409 / 407
Version history: 1 change(s)
Referenced in: [show references]