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

11
LINES

< > BotCompany Repo | #1027150 // philosophyBot1_addDeepReplacement (v1)

JavaX fragment (include)

svoid philosophyBot1_addDeepReplacement(PhilosophyBot1 bot, S in, S out) {
  if (bot.deepReplacements == null) {
    bot.deepReplacements = ciMap();
    
    // enable replacer
    bot.anyCodeOnFacts.newA(fact ->
      bot.addFact(gazelle_deepReplaceFullPhrases(bot.deepReplacements, fact)));
  }

  bot.deepReplacements.put(in, out);
}

Author comment

Began life as a copy of #1027148

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv

No comments. add comment

Snippet ID: #1027150
Snippet name: philosophyBot1_addDeepReplacement (v1)
Eternal ID of this version: #1027150/1
Text MD5: 08d8608dba8cdf9dfaf7b7cf2fd7d917
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-02-22 16:11:13
Source code size: 346 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 159 / 177
Referenced in: [show references]