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

7
LINES

< > BotCompany Repo | #1022044 // gazelle_replaceFirstInOfRuleText

JavaX fragment (include)

sS gazelle_replaceFirstInOfRuleText(S ruleText, S newIn) {
  PairS p = splitAtDoubleArrow_pair(ruleText);
  if (p == null) null;
  LS ins = tok_splitAtPlusAtBeginningOfLine(p.a);
  ins.set(0, newIn);
  ret gazelle_constructRuleText(ins, p.b);
}

Author comment

Began life as a copy of #1022038

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney

No comments. add comment

Snippet ID: #1022044
Snippet name: gazelle_replaceFirstInOfRuleText
Eternal ID of this version: #1022044/1
Text MD5: f34ac3f8d2bedc0534425ac28ff1873c
Author: stefan
Category: javax / gazelle
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-03-05 23:25:15
Source code size: 250 bytes / 7 lines
Pitched / IR pitched: No / No
Views / Downloads: 300 / 292
Referenced in: [show references]