static WordTokRule wordTokReplacerRuleOnXY(S sentence, S replaced) { ret wordTokReplacerRule(sentence, "X Y", replaced); } static WordTokRule wordTokReplacerRuleOnXY(S s) { PairS p = splitAtDoubleArrow_pair(s); if (p == null) { print("No arrow: " + s); null; } ret wordTokReplacerRuleOnXY(p.a, p.b); }
Began life as a copy of #1023505
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: | #1023514 |
Snippet name: | wordTokReplacerRuleOnXY - with variables "X" and "Y" (must not all be used) |
Eternal ID of this version: | #1023514/3 |
Text MD5: | a72bafb6fa516bdeba8fc0fce23208b6 |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-06-27 13:03:09 |
Source code size: | 318 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 271 / 294 |
Version history: | 2 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1023757 - wordTokReplacerRuleOnStarVars - finds variables marked with "*" |