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

8
LINES

< > BotCompany Repo | #1023505 // wordTokReplacerRuleOnX - with single variable "X"

JavaX fragment (include)

static WordTokRule wordTokReplacerRuleOnX(S sentence, S replaced) {
  ret wordTokReplacerRule(sentence, "X", replaced);
}

static WordTokRule wordTokReplacerRuleOnX(S s) {
  PairS p = splitAtDoubleArrow_pair(s);
  ret wordTokReplacerRuleOnX(p.a, p.b);
}

Author comment

Began life as a copy of #1023174

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: #1023505
Snippet name: wordTokReplacerRuleOnX - with single variable "X"
Eternal ID of this version: #1023505/3
Text MD5: 7495459e94387d36decda2f20aaff69a
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-26 13:58:29
Source code size: 260 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 241 / 273
Version history: 2 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1023514 - wordTokReplacerRuleOnXY - with variables "X" and "Y" (must not all be used)