1 | static S ai_sr_patternize(S s) { |
2 | L<S> tok = ai_someSplit(s); |
3 | for (int i = 1; i < l(tok); i += 2) { |
4 | S category = ai_text(tok.get(i), "is", "$X"); |
5 | if (category != null) |
6 | tok.set(i, "<" + category + ">"); |
7 | } |
8 | ret join(tok); |
9 | } |
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: | 516 / 509 |
Version history: | 1 change(s) |
Referenced in: | [show references] |